Linux 软件免费装

Login Security – Custom Login URL

开发者 christianzimpel
WP-Support-Blog.com
更新时间 2026年10月25日 02:41
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv3 or later
版权网址: 版权信息

标签

security login custom login url wp-login hide login

下载

2.0.0

详情介绍:

Bots hammer /wp-login.php on almost every WordPress site. This plugin moves the login form to an address only you know, for example example.com/my-door/, and answers requests to the default entry points with a regular 404 page of your theme. Features Why hide the login at all? Honest answer: a hidden login is no replacement for strong passwords, two-factor authentication or a login limit. Its value is different – automated attacks stop hitting your login form, which means less server load, fewer lockouts of real users and cleaner logs. It is especially handy on sites with customer accounts where a .htaccess password is not an option, and it gives your customers a nicer login address. Combine it with 2FA for real protection. Settings Settings → Login Security

安装:

  1. Install and activate the plugin.
  2. Go to Settings → Login Security and enter your new login slug.
  3. Bookmark the new login URL shown on the settings page.

升级注意事项:

2.0.0 Security and stability release: closes a login bypass, returns real 404 pages and stops flushing rewrite rules on every request. Your login URL is kept.

常见问题:

I forgot my login URL. How do I get back in?

Add define( 'LSFW_DISABLE', true ); to your wp-config.php or rename the folder wp-content/plugins/login-security-for-wp via FTP. The default login works again. With WP-CLI you can read the slug with wp option get wplogsec_url.

Why does /wp-admin/ show a 404 instead of redirecting to the login?

A redirect would tell every visitor where your login is. Logged-in users can use wp-admin as usual.

Does it work with WooCommerce or membership plugins?

Yes. Front-end login forms (e.g. the WooCommerce "My account" page) are not affected. Only wp-login.php and /wp-admin/ are hidden.

My theme shows a login link. Does that reveal the URL?

Yes – every link created with wp_login_url(), for example the "Log in" link of the comment form or the Login/out block, points to the new URL. Remove those links if you want to keep the address private.

Does it work on multisite?

The plugin is built and tested for single sites.

更新日志:

2.0.0 – 2026-10-24 1.0.1 1.0.0