The easiest way to hide backend login address in WordPress (DUX theme)

888u

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

The easiest way to hide backend login address in WordPress (DUX theme)

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码