AI Audit Schedule a Call
Security Plugins & Hardening November 24, 2026

WordPress Login Security: 2FA, Limits and Hidden URLs

WordPress Login Security Layers
On this page
  1. What is the fastest way to secure your WordPress login?
  2. How strong does a WordPress password need to be?
  3. Do you need WordPress two-factor authentication?
  4. How do you limit login attempts in WordPress?
  5. Should you rename the admin username?
  6. Does hiding the login URL protect wp-admin?
  7. What does the evidence not tell you?
  8. When should you get help with WordPress login security?
  9. Frequently asked questions

WordPress login security works best as layers: a long, unique password, two-factor authentication, limits on failed attempts, and a username that is not “admin”. Hiding the login URL is optional. The official WordPress handbook says obscuring it can reduce noise but should not be your only defense.

This article walks through each layer, what the official guidance says, and where a hidden login page helps and where it causes trouble. If you would rather have someone handle this alongside updates and monitoring, our Website Care & Maintenance plans cover it.

What is the fastest way to secure your WordPress login?

Work through these five steps in order. They cover the protections that official guidance puts first.

  1. Give every administrator a long, unique password stored in a password manager.
  2. Add two-factor authentication for every administrator and privileged user.
  3. Limit failed login attempts, ideally at the server or CDN, or with a plugin if that is not possible.
  4. Stop using “admin” or similar easily guessed usernames.
  5. Optionally hide the login URL, knowing what it does and does not do.

Do these in order, and treat the hidden URL as optional extra noise reduction, not a lock.

Five-step checklist for securing a WordPress login: password, two-factor, login limits, username, optional hidden URL
The order of protection matters more than any single tool.

How strong does a WordPress password need to be?

Longer is better, and the most specific numbers come from OWASP rather than WordPress. According to OWASP’s Authentication Cheat Sheet, passwords shorter than 8 characters are weak when multi-factor authentication is enabled, and passwords shorter than 15 characters are weak when it is not. OWASP also says systems should allow at least 64 characters so people can use passphrases.

The WordPress Hardening guide is less specific. It calls a strong password an important part of login security, advises against short passwords, dictionary words, and purely numeric or purely alphabetic passwords, and recommends the built-in password strength meter. The Brute Force Attacks page adds that administrators should use unique, long passwords or passphrases with a password manager.

Unique matters as much as long. A strong password reused on another site is only as safe as the weakest site that stored it.

Do you need WordPress two-factor authentication?

For administrators, yes. The WordPress Brute Force Attacks handbook page recommends 2FA for all administrators and privileged users, and it states plainly that “WordPress core does not ship 2FA”. You add it with a plugin or through an SSO or identity provider.

The handbook defines two-step authentication as using two of three factors: something you are, something you have, or something you know. OWASP calls MFA “by far the best defense against the majority of password-related attacks”. It cites a Microsoft analysis suggesting MFA “would have stopped 99.9% of account compromises”. That figure is a Microsoft estimate quoted by OWASP, and the original analysis is not linked here, so treat it as a strong signal rather than a guarantee.

Which 2FA plugin and method should you use?

The free Two Factor plugin on WordPress.org lists 100,000+ active installations, version 0.17.0 and a 4.8/5 rating, with the directory page last modified on September 28, 2026. The handbook also names Duo, Google Authenticator, Rublon, Two-Factor and Wordfence as options. Here is how the methods break down:

MethodWhat the sources say
Authenticator app (TOTP)Supported by the Two Factor plugin
Email codesSupported by the Two Factor plugin
Backup codesSupported by the Two Factor plugin; useful if a phone is lost
SMSThe handbook warns SMS is “not a secure communication channel”
Passkeys and hardware keysNeed a separate WebAuthn provider plugin; FIDO U2F was removed from Two Factor in 0.16.0

An authenticator app avoids the SMS channel the handbook warns about. The sources do not rank email codes against apps, so we will not claim a measured difference.

Two practical cautions from the handbook: use HTTPS on the login page, and remember that a lost phone can lock a user out. Save backup codes somewhere safe when you enable 2FA.

How do you limit login attempts in WordPress?

You rate-limit or lock out repeated failures, ideally before the request reaches WordPress. The Brute Force Attacks page recommends rate-limiting “at the edge (WAF/CDN) or the web server”. If that is not possible, it says “a security plugin can throttle login attempts”. It also suggests CAPTCHA or Turnstile on the login form.

Plugin throttling has a cost. The same page notes it still runs in PHP and “consume[s] some resources under heavy attack”.

What does a login-limiting plugin offer?

Limit Login Attempts Reloaded lists 1+ million active installs, version 3.4.4, and a directory page last modified on November 17, 2026. This is vendor-reported: the free version limits attempts by IP address and username, with adjustable lockout duration and retry limits, while cloud throttling and lockout escalation are in the premium tier. The vendor’s description says “Trusted by 2 million WordPress websites” while the directory metadata shows 1+ million active installs, so we use the lower, listed figure.

How many failed attempts should you allow?

No source in the official guidance gives a universal number, and the vendor page only says its defaults are recommended. OWASP calls account lockout “the most common protection” against guessing and says thresholds must balance security against usability. It also mentions exponential lockout, where waits grow with each failure, as an alternative.

OWASP adds some design points worth knowing:

  • The failure counter should be tied to the account, not the source IP, so rotating addresses cannot evade it. The plugin describes limiting by IP and username, which is a different approach.
  • Locked-out users should still reach password recovery, so lockouts cannot be used to deny service.
  • Login errors should be generic, such as “Login failed; Invalid user ID or password.”

Should you rename the admin username?

Yes, if you still use “admin”. The WordPress Hardening guide says to “avoid easily guessed terms such as `admin` or `webmaster` as usernames because they are typically subject to attacks first.” It also explains how to rename an existing account through MySQL or phpMyAdmin.

Editing the database directly is easy to get wrong, so take a full backup first. If you need a refresher, see our guide to restoring WordPress backup files and the database.

Does hiding the login URL protect wp-admin?

Only a little. The official Brute Force page says that obscuring the login URL can reduce noise but should not be your only defense. The Hardening page calls security through obscurity “generally an unsound primary strategy”. Hiding the URL can quiet automated traffic, but it is not a way to protect wp-admin on its own.

WPS Hide Login lists 2+ million active installs, version 1.9.20, and a page last modified on November 12, 2026 (vendor-reported). It changes the login URL without editing core files or adding rewrite rules, and makes wp-admin and wp-login.php inaccessible at their usual addresses. The vendor’s own caveats are worth reading:

  • It does not work with plugins or themes that hardcode wp-login.php.
  • Page caches other than WP Rocket need the new slug on a no-cache list.
  • Registration and lost-password URLs are not redirected automatically.
  • Conflicting .htaccess rules can cause lockouts.

The plugin’s support forum shows these side effects in practice. Thread titles on the first page include “Password Reset Links Invalid When WPS Hide Login Is Enabled”, “Redirecting the old login URL?” and “WordPress or Jetpack apps cannot connect when plugin is active”. That is anecdotal and not a failure rate, but it matches the vendor’s caveats. If you forget the new address, the vendor says it can be recovered from the whl_page database option.

The handbook is also cautious about heavier approaches. It describes large .htaccess rewrites, country IP blocklists and BasicAuth over all of /wp-admin as unreliable or disruptive, for example by breaking AJAX-based plugins.

How the layers compare

For a wider look at tools, see our comparison of WordPress security plugins and our post on whether a security plugin alone stops attacks. For this article’s topic, the pattern is simple: passwords, two-factor, attempt limits and a non-default username do the protecting, and the other four are the ones doing the protecting while a hidden URL is a convenience.

Table-style summary of five WordPress login protections and whether each is core or optional
Four layers do the protecting; the hidden URL is a convenience.

What does the evidence not tell you?

Several things are unknown, and we would rather say so than guess:

  • We found no independent study measuring whether hiding the login URL reduces successful attacks. The official guidance only claims reduced noise.
  • Plugin pages for Limit Login Attempts Reloaded and WPS Hide Login are written by the vendors, so their effectiveness claims are vendor-reported.
  • The exact default retry count and lockout time for Limit Login Attempts Reloaded are not stated on its page.
  • OWASP’s cheat sheet shows no publication date, and the 99.9% figure is a Microsoft estimate quoted by OWASP.
  • We have no verified attack-volume figures for login attempts, so we do not quote any. For broader data on how sites get compromised, see our WordPress security statistics post.

When should you get help with WordPress login security?

Get help if you manage several sites, share admin access with contractors, or have already lost access once after a plugin change. Atgler has worked with WordPress for 7 years and has built, managed and maintained more than 600 sites. Weak passwords are among the common causes we see on hacked sites, though we do not promise to prove exactly how any one site was compromised. Our website care plans start at $99 a month, month to month, and include weekly updates and uptime monitoring. If a login has already been abused, our hacked site checklist is the place to start.

Frequently asked questions

Does changing the WordPress login URL make my site more secure?

Only slightly. The official WordPress handbook says it can reduce noise but should not be your only defense, so use it on top of strong passwords, 2FA and login limits.

I changed my login URL and forgot it. How do I get back in?

The WPS Hide Login plugin’s page says a forgotten URL can be recovered from the whl_page option in the database. If you are not comfortable editing the database, ask your host or developer to look it up.

Is SMS good enough for two-factor authentication?

The WordPress handbook warns that SMS is “not a secure communication channel”. An authenticator app is a better starting point, and passkeys or hardware keys need a separate WebAuthn provider plugin.

Why do password reset links break after hiding wp-login.php?

The WPS Hide Login page says registration and lost-password URLs are not redirected automatically, and its support forum has threads about invalid reset links. Test a password reset after enabling any hide-login plugin.

Will a login-limiting plugin slow down my site?

It can under heavy attack. The WordPress handbook says plugin throttling still runs in PHP and consumes some resources, which is why it prefers rate-limiting at the CDN, WAF or web server when possible.

Sources