Blog

How do I hide the wp-admin login path?

Change the login URL to stop the bots hammering wp-login.

One of the first places bots go after is /wp-login.php. Swapping that path for a secret one cuts almost all of that noise.

Without relying on external plugins

With a must-use plugin you can serve the login on a secret path, and block direct access to wp-login.php and wp-admin for anyone who isn’t logged in (redirecting them to the home page).

Tip: manage it with a constant in wp-config.php. That way, if something goes wrong, you remove the constant and get access back instantly.

It’s not a silver bullet (keep using strong passwords and, if you can, 2FA), but it hugely reduces the automated attack surface.

What now?

Build it yourself
or have me build it?

If you’d rather build it yourself, the step-by-step guide is here. And if you’d prefer I build it, tell me about your project and let’s talk.