Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/azanumer/wp-change-login-url/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A WordPress plugin (no dependencies) that renames wp-login.php to a
custom slug — e.g. https://example.com/panel-login/. Direct hits to
wp-login.php return 404, which kills the vast majority of brute-force
login bots that only knock on the default URL.
How it works
- Settings → Change Login URL: set a custom slug (default
panel-login). A recovery key is auto-generated for you. - A rewrite rule maps
/<slug>/towp-login.phpinternally, so the login form, lost-password and registration flows all work at the new URL. login_initblocks directwp-login.phprequests with a 404 — unless?wcl_key=<recovery-key>matches (your emergency backdoor if you forget the slug).- The
login_url,lostpassword_url,register_urlandlogout_urlfilters are rewritten so WordPress itself links to the new slug (including the logout link, which would otherwise 404 too).
Quick start
- Upload
change-login-url.php(anduninstall.php) towp-content/plugins/wp-change-login-url/. - Activate the plugin — rewrite rules flush automatically.
- Go to Settings → Change Login URL, pick your slug, save.
- Bookmark the new URL. Store the recovery key somewhere safe.
Slug rules: lowercase letters, numbers and hyphens only; reserved slugs
(wp-admin, wp-login, admin, login, …) are rejected.
Files
change-login-url.php— the whole pluginuninstall.php— drops thewcl_settingsoption on uninstall
Notes
- Pretty permalinks must be enabled (the slug works via a rewrite rule).
- Deactivating the plugin flushes rewrite rules and restores the default
wp-login.phpbehavior. - This is obscurity, not a replacement for strong passwords, 2FA and login-attempt limiting.
Requirements
WordPress 5.0+, PHP 7.4+.
License
MIT — see LICENSE.