| 开发者 |
christianzimpel
WP-Support-Blog.com |
|---|---|
| 更新时间 | 2026年10月25日 02:41 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
/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
wp-login.php, wp-register.php and /wp-admin/ return a real 404 status for logged-out visitors (no white screen, no redirect that gives the new URL away)./login, /admin and /dashboard no longer reveal the login.define( 'LSFW_DISABLE', true ); in wp-config.php..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
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.
A redirect would tell every visitor where your login is. Logged-in users can use wp-admin as usual.
Yes. Front-end login forms (e.g. the WooCommerce "My account" page) are not affected. Only wp-login.php and /wp-admin/ are hidden.
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.
The plugin is built and tested for single sites.
index.php?lsfw_custom_login=1. The query variable no longer exists./login, /admin, /dashboard and wp-signup.php redirected to the custom login and revealed it.add_options_page() (wrong add_submenu_page() parameters and duplicate text domain removed).LSFW_DISABLE.