Last update at :2024-01-25,Edit by888u
Hide the WordPress backend login address is one of the ways to ensure the security of the website. While hiding it, you should delete the link to the login backend of the website.
If you are using a DUX theme, modify the theme file functions.php and insert the following code.
Change mima to the characters you need, and then the login address is: https://***/wp-login.php?mima, or: https://***/wp-admin ?mima
If you do not access according to the above address, you will jump directly to the homepage of the website.
// https://themebetter.com/wordpress-hide-login.html add_action('login_enqueue_scripts', 'tb_wp_login_protection'); function tb_wp_login_protection(){ if( !isset($_GET['mima']) ){ header( 'Location: ' . home_url() ); exit; } }Recommended site search: Korean virtual host, free foreign server, large bandwidth server rental, dual line dual IP, virtual host rental, jsp host, foreign server free IP address, game high defense server rental, how about registered domain names Query domain name registration number
发表评论