Hide your WordPress login page
Move wp-login.php and wp-admin behind an address only you know. Automated attacks aimed at the default login page never find a door to knock on.
What it does
The overwhelming majority of login attacks are automated scripts pointed at wp-login.php and wp-admin. This module gives your site a secret login address and decides what everyone else sees when they try the default one.
By default, visitors who request the old login URLs get a standard 404 page, as if the login did not exist. You can send them to the homepage instead.
How it works
The plugin removes WordPress's admin redirect shortcuts and routes your chosen slug to the real login form. It also ships an optional login consent banner (useful for GDPR notices) and an HTTP Basic Auth guard that can put a second password prompt in front of the login page itself.
- Custom login slug of your choosing
- Default-login visitors see a 404 (or the homepage, your call)
- Optional login consent banner with editable text
- Optional HTTP Basic Auth in front of the login (10 failures, 15-minute lockout, trusted IPs)
Good to know
Works alongside caching plugins and CDNs. Exclude your login path from full-page caching, as with any login page. Hiding the login is one layer, not the whole story: pair it with two-factor authentication and brute-force limiting, which the free plugin also includes.
Documentation
Hide-login questions
What do visitors see at the old wp-login.php?
A standard 404 page by default, or the homepage if you prefer. Nothing reveals that a login exists.
Does this work with caching and CDNs?
Yes. Exclude the login path from full-page caching, the same rule as for any WordPress login page.
Is hiding the login enough on its own?
No single layer is. It removes the easy automated target; combine it with 2FA and brute-force limits. Both are in the same free plugin.
Related features
Brute-force limiting
Escalating lockouts for failed logins, with an emergency recovery URL.
Learn more →Two-factor authentication
Email codes and authenticator apps with per-role enforcement.
Learn more →Secure your site today
Install the free plugin from WordPress.org and set up real protection with the guided setup wizard. Upgrade to Pro whenever you need more.
