In this guide: How to change the WordPress login URL: why bots attack login pages, changing the URL with a plugin, limiting login attempts, adding 2FA, and recovery steps.
Every WordPress site has the same login page: yoursite.com/wp-login.php (and /wp-admin/ redirects there). Bots know it too. They constantly try username and password combinations against it — wasting server resources and filling your logs.
Changing the login URL is a simple step that cuts down on this automated noise.
Changing the login URL is security through obscurity — it’s not a replacement for strong passwords or 2FA, but it significantly reduces automated attempts. Combine it with the other steps below.
Using a plugin (easiest)
Options include WPS Hide Login (lightweight and focused) or security plugins like Solid Security and All-In-One Security that include a “hide login” feature.
With WPS Hide Login:
/team-access (avoid obvious choices like /login or /admin)./wp-login.php or /wp-admin/ while logged out (often a 404 page).Things to check:
Limit how many failed logins are allowed before temporarily blocking an IP:
Suggested settings:
Block username enumeration: attackers can sometimes discover usernames via author archives or the REST API. Many security plugins can prevent this, and using display names different from usernames helps.
Two-factor authentication is the most effective protection against stolen or guessed passwords.
Some plugins and hosts now support passkeys, which are resistant to phishing and very convenient. See Two-Factor Authentication Apps Compared.
Test everything:
/wp-login.php and /wp-admin/ no longer show the login form to logged-out visitors.If you forget the new URL or get locked out:
/wp-content/plugins/.wps-hide-login → wps-hide-login-disabled). This deactivates it./wp-login.php.If you’re locked out by a login limiter, wait for the lockout to expire, log in from another network, or temporarily deactivate the plugin the same way.
For the complete picture, see WordPress Security: The Complete 2026 Checklist.
Further reading: official WordPress documentation
We may earn a commission on purchases made through these links, at no extra cost to you.
Don’t miss the chance to participate in the biggest giveaway of this year.