Method to change the default login page name for Wordpress wp-login

A lot of people asked me how to change the default login address for WordPress, because if we knew it was backstage WORDPRESS, we all knew it.http://域名目录/wp-login.php就是登录地址,再字典暴力破解,很有可能会被破解开密码。(事实上前段时间确实有过类似报道,很多WP站被暴力破解帐号密码,造成严重损失)。而网上大多数教程都是在wp-login.php后面加上参数,例如?x7aio2等等类似的形式,虽然起到一定作用,但很多人还是觉得不好看,而且输入起来麻烦,不如自己自定义来的美观

Next, let’s change the wp-login.php suffix of WordPress landing file name.

We need to modify two files, including, of course, wp-login.php.

1. Replace the wp-login.php file with your desired name under the root directory, e.g., houtai.php, and open it with an editor. Replace all wp-login characters with hootai. 2. Find a gennal-template.php file in the wp-includs directory, open it with an editor and replace all wp-login characters with houtai. Search for the variable $[login_url] and change this variable to this

$login_url = site_url('buzhunluanjin.php', 'login');

where buzhunluanjin can be replaced with another, or save default wp-login. This line means definition when someone passeshttp://域名/wp-admin/地址访问网站时或者直接访问后台某个地址时进行跳转到site_url()设置的地址内,所以防止别人探索你的地址。

Once the above changes have been completed, the documents will be uploaded to the server and will need to be opened for login later on.

The post is from the source view blog, and please contact the station director to remove any violations.

未经允许不得转载:萌萌Apprentissage » Method to change the default login page name for Wordpress wp-login

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本