How to Change the WordPress Login URL

By Information Security Asia · Updated November 21, 2026 · 4 min read

Short answer: the easiest way to change the WordPress login URL is with a lightweight, well-maintained plugin that moves wp-login.php to a custom path such as /my-team-login and returns a 404 for the default. It sharply reduces automated login attempts and log noise, but it is obscurity, not real security: it does not replace strong passwords, two-factor authentication and login rate limiting. Bookmark the new URL and know how to disable the plugin through your file manager in case you get locked out.

Every WordPress site has the same login addresses: /wp-login.php and /wp-admin/. Bots know this and constantly try common usernames and leaked passwords against them. On our own sites, we noticed that the WordPress site compromised in November 2026 still used the default login path, while two sites with custom login paths owned by the same person were untouched. We cannot prove that was the entry point, but it illustrates why reducing exposure is worthwhile.

How to Change the WordPress Login URL

What changing the login URL does

It stops automated scripts that blindly target wp-login.php, which is the vast majority of brute-force traffic. That means fewer failed login attempts, smaller logs, lower server load from bots and fewer lockout notifications. It also hides one obvious signal that the site runs WordPress.

What it does not do

It does not stop a determined attacker who finds the new URL, for example from a link in a theme, an email or a plugin that exposes it. It does not protect other entry points such as XML-RPC (xmlrpc.php), the REST API or vulnerable plugin endpoints. It does not help if your password has leaked and the attacker finds the login page. And it does not stop vulnerabilities in plugins, which are the most common way WordPress sites are compromised. Treat it as one layer among several.

  1. Back up your site.
  2. Install a reputable plugin that changes the login URL, or use the feature built into a security plugin you already run, to avoid adding another plugin.
  3. Set a custom login slug that is not obvious. Avoid “login”, “admin” or “signin”; choose something unique.
  4. Save, then immediately bookmark the new URL and store it in your password manager alongside your credentials.
  5. Log out and test the new URL, and confirm that /wp-login.php and /wp-admin/ (when logged out) no longer show the login form.

Method 2: Server-level protection

Instead of moving the URL, you can restrict access to wp-login.php at the web server or firewall: allow only your IP address, add HTTP basic authentication in front of it, or use a web application firewall rule (for example in Cloudflare) to challenge visitors to the login page. These methods are stronger than obscurity because they block access outright, though IP allowlisting is awkward if your IP changes or several people log in from different places.

Pitfalls to avoid

Do not edit WordPress core files to rename wp-login.php; updates will overwrite them and you may break the site. Check compatibility with caching plugins, membership or WooCommerce login forms, and any service that logs in automatically. If you forget the custom URL, check the plugin’s settings in the database or disable the plugin by renaming its folder in wp-content/plugins through your hosting file manager or SFTP; the default login URL then works again.

How to Change the WordPress Login URL

Combine it with real protections

For meaningful security, pair a custom login URL with these: unique strong passwords for every account; two-factor authentication for all administrators and editors; login attempt limits or a firewall that blocks repeated failures; disabling XML-RPC if you do not use it; removing default “admin” usernames and making display names different from login names; and keeping plugins updated. See stopping WordPress brute force attacks.

Frequently asked questions

Is changing the login URL worth it?

Yes, as a low-effort way to cut bot traffic and noise, but only alongside 2FA and strong passwords.

Will it break WooCommerce customer logins?

WooCommerce uses its own My Account page for customers, which is usually unaffected. Test after enabling.

Can attackers still find the new URL?

Sometimes, through links or plugins that reveal it. That is why it is not a security control on its own.

What if I get locked out?

Rename the plugin’s folder via SFTP or file manager to disable it, then log in at the default URL.

Related: WordPress security checklist, hide the WordPress version.

Sources

Keep reading