Security 5 min read

Should you change the WordPress login URL?

Should you change the WordPress login URL from wp-login.php? Benefits, limits, how to do it with plugins, compatibility issues, lockout recovery and better alternatives.

Usman Muhammad UsmanUpdated October 13, 2026
Should you change the WordPress login URL?

Every WordPress site has its login page at the same address, wp-login.php, so bots know exactly where to send password guesses. Changing the login URL is a popular suggestion. It does reduce bot traffic, but it is not real security on its own and can cause problems if done carelessly. Here is an honest look at the pros, cons and how I handle it.

Why people change it

Bots target wp-login.php and wp-admin constantly. Moving the login page to a custom address, such as /team-login/, means most automated attempts hit a 404 instead. Security logs become quieter and server load from login attempts drops.

For sites on modest hosting with heavy bot traffic, this can noticeably reduce resource use.

What it does not do

Changing the login URL is security through obscurity. Determined attackers can sometimes find custom login pages through links, plugins that reveal them or other entry points such as XML-RPC. It does nothing against phishing, stolen passwords or vulnerable plugins.

Treat it as noise reduction, not a replacement for strong passwords, 2FA and updates.

Login protection options
MethodReal securityReduces bot noise
Custom login URLLowHigh
2FAHighNo
Login limitsMediumMedium
Firewall challengeMediumHigh
IP restrictionHighHigh

How to change it

Plugins such as WPS Hide Login and the login URL options in Solid Security and other security suites change the login address without editing core files. Choose a memorable but not obvious path, and avoid common alternatives such as /login or /admin.

Never edit wp-login.php directly; updates will overwrite changes and you may break logins.

Save the new address

Store the new login URL in your password manager alongside the credentials, and share it with everyone who needs to log in. Forgetting the address is the most common problem after changing it.

Bookmark it in your browser as well. See password managers for small teams.

Recovering from lockout

If you forget the custom URL or the plugin breaks, rename the plugin’s folder in wp-content/plugins using SFTP or your host’s file manager. This deactivates the plugin and restores the default wp-login.php address.

Keep hosting access details available so you can do this in an emergency.

Compatibility issues

Some plugins, themes, caching configurations and membership systems link directly to wp-login.php or wp-admin. After changing the URL, test logout, password reset, WooCommerce account pages, membership logins and any custom login forms.

Exclude the custom login URL from page caching, or logins may fail. See WordPress caching explained.

WooCommerce and customer logins

On stores, customers usually log in through the My Account page rather than wp-login.php, so changing the admin login URL rarely affects them. However, protect the My Account login too, since attackers target it for credential stuffing.

See WooCommerce security basics.

Do not forget XML-RPC

Changing the login URL does not affect XML-RPC, which attackers use for brute force attempts. Disable XML-RPC if you do not need it, or bots will simply switch their attention there.

See XML-RPC and WordPress security.

Better alternatives first

Strong unique passwords, two-factor authentication, login attempt limits and firewall rules provide real protection. With these in place, a changed login URL adds little security, though it can still reduce noise.

See securing WordPress logins and brute force attack protection.

Edge protection as an alternative

Instead of hiding the login page, you can protect it at the firewall: challenge wp-login.php traffic from unexpected countries with Cloudflare, rate limit requests or restrict access by IP for teams with fixed locations. This blocks bots before they reach your server.

See do you need a WAF.

When I recommend it

I recommend changing the login URL on sites with heavy bot traffic on limited hosting, sites where login logs are too noisy to review and as an extra layer on sites that already have strong login security.

I do not rely on it alone, and I skip it where it would complicate logins for many users or conflict with plugins.

Document the change

Note the custom login URL and the plugin used in your site’s handover document, so future developers and team members know how to log in and how to restore the default if needed.

See my website ownership checklist.

Hiding wp-admin as well

Most login URL plugins also redirect visitors who try wp-admin while logged out, so the custom address is not revealed. Check that this works after setup by visiting wp-admin in a private browser window; you should see a 404 or your chosen page rather than a redirect to the new login.

Logged-in users can still reach wp-admin normally. If some admin-ajax.php features stop working for visitors, check the plugin’s settings, as front-end features rely on that file even when wp-admin is hidden.

Getting help

I configure login protection, including custom login URLs where useful, as part of my website protection service. For the full picture, follow my security hardening checklist.

For a review of your current setup, see my WordPress security audit.

Key takeaways

  • Changing the login URL reduces bot traffic but is not strong security alone.
  • Use a plugin, never edit core files, and save the new URL safely.
  • Rename the plugin folder via SFTP if you get locked out.
  • Rely on 2FA, login limits and firewall rules for real protection.

Frequently asked questions

Does changing the login URL stop hackers?

It stops many bots but not determined attackers. Combine it with 2FA and login limits.

What if I forget my custom login URL?

Rename the plugin folder via SFTP to restore wp-login.php.

Will it affect WooCommerce customers?

Usually not, since they log in through My Account.

Which plugin should I use?

WPS Hide Login is lightweight; security suites like Solid Security include the option.

Does it improve performance?

It can reduce server load from bot login attempts.

Should every site change the login URL?

Not necessarily. It is optional extra noise reduction.

Can I change the login URL back later?

Yes. Deactivate the plugin or change its setting, and wp-login.php works again immediately.

Does a custom login URL break password reset emails?

Good plugins update reset links automatically. Test the reset flow after changing the URL.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Security

All Security articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.