WordPress brute force protection means stopping automated scripts from guessing their way into your login. The usual advice is a plugin that locks out an address after a few wrong passwords. That stops the noisy attacks. It does nothing against the quiet one that actually got into a site we later cleaned up: twelve weeks of slow guessing, spread across 22 different internet addresses, and not one lockout.

The volume is still huge. Wordfence reported blocking more than 55 billion password attacks across the sites it protects in 2024, in its 2024 annual WordPress security report. The same report says password attacks are on the decline while attacks on software flaws are growing, and Verizon's 2026 Data Breach Investigations Report now puts software vulnerabilities ahead of stolen passwords as the top way attackers get in. So the crude flood matters less than it did. The slow, patient attack is the one to plan for.

This article is part of our broader look at WordPress security threats. It covers what a brute force attack is, how one got past a working lockout, the doors bots use, the layers that stop them, and what your login log is really telling you.

What Is a WordPress Brute Force Attack?

A brute force attack is an automated attempt to guess login credentials by trying username and password combinations until one works. WordPress makes it easier than most systems:

  • The login address is predictable. Every WordPress site has a login page at /wp-login.php.
  • There's more than one door. XML-RPC, an older remote publishing interface, also accepts usernames and passwords, and it's on by default. If you run WooCommerce, the customer account page is a login form too.
  • Core leaves rate limiting to you. The WordPress handbook page on brute force attacks tells site owners to rate-limit /wp-login.php and /xmlrpc.php at the edge or the web server, and to use a security plugin only if the host doesn't. Out of the box, nothing counts.
  • Usernames are often easy to find. By default an author's archive address uses their login name, which hands attackers half of the pair.

The two types of brute force attack

Traditional brute force tries many passwords against one username. The classic target is the built-in admin account.

Credential stuffing uses email and password pairs leaked from breaches of other websites. Because people reuse passwords, a password stolen from a store or a social network may open your WordPress site too. Each address tries only one or two logins, which is why it slips under limits. Our guide to WordPress two-factor authentication covers where those passwords come from.

Brute force vs. a DDoS attack

A brute force attack wants in. A denial-of-service attack wants the site down. On WordPress the two overlap, because every login attempt makes the server do real work, so a big enough brute force run slows or stops the site even when every guess fails.

How Long Does a Brute Force Attack Last? Our Twelve-Week Example

As long as the attacker is patient, and the patient ones are the ones that work.

For years I told people I hadn't seen a brute force attack actually get into a site. I can't say that anymore. This summer a national advocacy organization came to us after its site was breached, before it moved to us. When we went through the logs, the story was plain:

  • Guessing started in early May against the site's old built-in admin account, an account nobody on staff used day to day.
  • It was paced to stay under the lockout limit. No address ever failed often enough, fast enough, to get blocked. The protection was installed and working the whole time. It just never saw anything worth counting.
  • The first correct guess came on July 28, about twelve weeks in.
  • 22 different internet addresses logged into that one account, 23 logins in all. Every real staff account had logged in from one to three addresses.
  • 22 minutes after the first successful login, the attacker planted the first backdoor.

We cleaned the site, renamed and demoted the old account rather than deleting it (it owned thousands of posts), and moved the site onto our hosting. What to do in those first hours is in our guide to WordPress malware removal.

Two things made this work for the attacker, and both are common. The account was named admin, so half the guess was free. And the only defense counted failures per address over a short window, which a slow attack never trips. A second factor on that login would have made the correct password useless.

Why "Limit Login Attempts" Isn't Enough

Lockout plugins count failures per address over a short window. Attackers know the window. Spread the guesses across dozens of addresses and several weeks, and nothing ever adds up to a lockout.

Credential stuffing slips past the same way: each address tries a login or two, then the next takes over. And modern bots rent home internet connections as proxies, so their traffic looks like ordinary households, which is exactly what a lockout or an IP reputation list is worst at. In November a small bakery's online store we host took about 23,000 failed logins in three days from connections like that (the full story is in our small business security post).

Limits still help. They cut the noise and slow the crude attacks. They're one layer. What closes the gap is making a correct password not enough on its own: two-factor authentication for everyone who can log in.

The Doors Bots Use: wp-login.php, XML-RPC, and Your Store's Account Page

Two doorways leading into a WordPress server representing the login page and XML-RPC endpoints

The login page (wp-login.php)

This is the obvious target. Each attempt makes your server start WordPress, look the user up in the database, and run the password check, which is deliberately slow so stolen password hashes are hard to crack. That slowness is good security and bad news under load.

XML-RPC: what it does, and whether you need it

XML-RPC is WordPress's old remote publishing interface, from before the REST API. It lets outside software log in and post to your site. Bots like it because it's a login door that sits outside your login page, so a CAPTCHA on the login form never sees it, and most two-factor plugins don't cover it either.

The difference between a regular brute force attack and one through XML-RPC used to be big. Around 2015, attackers bundled hundreds of password guesses into a single XML-RPC request. WordPress closed that in version 4.4 (core changeset 35366): after the first wrong password in a bundled request, the rest are refused without being checked. Today an XML-RPC attempt is one guess per request, like the login page. What's still different is that it goes around anything that only watches the login form. In 2024 Sucuri documented a campaign where hacked sites turned their visitors' browsers into a botnet that tested passwords on other WordPress sites through XML-RPC.

Do you need it? Most sites don't. The big exception is Jetpack, which still uses XML-RPC to talk to WordPress.com. If you run Jetpack, allow Jetpack's addresses and block everyone else. If you don't, turn XML-RPC off at the server or the firewall, not with a plugin that has to load WordPress to say no: a server rule that refuses requests to /xmlrpc.php, or a firewall rule that blocks them, is the clean way, and your host can usually add either in minutes. The WordPress mobile apps and most modern integrations use the REST API with application passwords instead.

Your store's customer login

If you run WooCommerce, the "My Account" login is a third door, and it's the one site owners forget. The bakery attack went almost entirely through it. Protection that only watches /wp-login.php doesn't see it.

The reconnaissance step

Brute force is often preceded by user enumeration, where bots collect valid usernames from author archives and the REST API. With a real username, they only have to guess the password.

How to Protect WordPress From Brute Force Attacks: The Layers, in Order

Good WordPress login security is four layers, not one tool: stop the volume at the edge, block repeat offenders at the server, close the easy doors inside WordPress, and make a correct password not enough at the login itself with two-factor authentication. Each layer catches what the one before it missed.

Diagram showing three layers of brute force defense: edge protection, application protection, and authentication hardening

Search for "WordPress brute force protection" and nearly every result recommends a plugin: Wordfence, Limit Login Attempts Reloaded, Solid Security. These are legitimate tools. They share one limit: they block attacks after the traffic has reached your server. We cover that tradeoff in security plugins vs. server-level protection.

Layer 1: The edge, before your server

A firewall at the network edge, like Cloudflare, filters requests before they reach your server. A login request it stops never costs your server anything. This is where high-volume attacks should die: a browser check on the login page, bad-reputation traffic blocked, known attack patterns blocked. Cloudflare's own rate limiting guide uses a login page as its first example, for exactly the credential stuffing described above.

Layer 2: The server

The server can watch for repeated failures and shut addresses out at its own firewall, before WordPress loads. Tools like Fail2Ban and server security suites do this for every site on the machine at once. This is also the answer to "how do I limit login attempts without a plugin": ask your host whether it already does.

Layer 3: WordPress

Inside WordPress, close the easy wins: stop username harvesting, make a wrong username look the same as a wrong password, turn off XML-RPC if nothing needs it, and get rid of any account literally named admin. A login-limiting plugin belongs here too, as a backstop.

Layer 4: The login itself

This is the layer that still holds when a password leaks or a slow attack finally guesses right. Two-factor authentication for everyone who can log in stops a correct password from being enough. It's the single strongest step: a Microsoft study of business accounts found multifactor authentication cut the risk of compromise by 98.56% even when the password had already leaked. WordPress core doesn't include it (the handbook says it has to come from a plugin or single sign-on); we use WP 2FA by Melapress. A CAPTCHA such as Cloudflare Turnstile on the login and password reset forms filters out most scripted attempts while costing real visitors almost nothing. Strong, unique passwords in a password manager make the guessing much harder to begin with.

One honest caveat on 2FA: it protects the browser login. It doesn't cover XML-RPC or application passwords, one more reason to close XML-RPC. Passkeys, which replace the password entirely, are worth watching. They aren't in WordPress core either; the handbook points to a maintained plugin, and some 2FA plugins, WP 2FA among them, now offer them.

Defense summary

Layer Defense What it stops Server cost
Edge (firewall/CDN) Browser checks, bot and reputation filtering, known attack patterns High-volume attacks before they reach PHP None
Server Repeated-failure blocking at the server firewall Persistent attackers the edge let through Very low
WordPress Enumeration protection, XML-RPC off, no admin account, lockout plugin as a backstop Reconnaissance and crude guessing Moderate (PHP runs for each request)
The login 2FA, CAPTCHA, strong passwords A guessed or stolen password, including a slow attack's eventual hit Minimal

Do You Need a Brute Force Protection Plugin?

It depends on what's in front of your site. If your host or firewall already blocks login floods and repeated failures, a plugin's lockout is a backstop, and its "10,000 attacks blocked this week" report mostly tells you how much work your server did that it shouldn't have had to. If nothing sits in front of your site, a plugin like Wordfence is real protection, even with the server cost.

Either way, a plugin isn't the whole answer, and neither is 2FA. 2FA stops the login. Limits and firewalls stop the load. You want both.

What Your Login Log Is Actually Telling You

Failed logins are background noise. On one organization's staff site we look after, the activity log showed 288 failed logins in a single late-July sweep, a bot working through a list of real staff usernames it had collected. Nobody got in, and nothing about it needed action beyond what was already in place. Every WordPress site has days like that.

The line that matters is a successful login that doesn't fit. In the twelve-week attack, the warning sign was never the failures. It was one account logging in from 22 different addresses when every real person logged in from one to three. If your security plugin or host can show you successful logins by account and address, that's the view to check.

Signs you're under a brute force attack

  • Password reset emails nobody requested. Bots send reset requests to find out which usernames and emails exist. In the bakery attack, a handful of these was the only thing the owner noticed.
  • A burst of lockout emails from a security plugin, or a jump in failed logins in its activity log.
  • Unexplained slowdowns that line up with traffic to /wp-login.php, /xmlrpc.php, or your store's account page.
  • CPU or memory spikes with no matching rise in real visitors.
  • Requests to login addresses you don't use, which means someone is hunting for your login page.
  • A successful login from an address or country your team doesn't use. This one isn't noise. If you see it alongside an admin account nobody created or files nobody uploaded, treat the site as hacked and start with our first-hour guide to WordPress malware removal.

If your own team suddenly can't log in after an attack, our guide to being locked out of WordPress admin walks through the fixes.

When the Firewall Gets Skipped

Two limits are worth knowing about, because almost nobody mentions them.

The origin can be reached directly. A firewall in front of your site only helps if traffic goes through it. If an attacker finds the address of the server behind it, through old DNS records, certificate logs, or the hosting platform's own hostnames, they can send login attempts straight to the server. We've seen credential stuffing arrive exactly that way, aimed at real staff usernames. Ask your host what happens to traffic that doesn't come through the firewall.

CAPTCHAs aren't locks. We've seen card testers get past a reCAPTCHA and a hidden honeypot field, and part of a real-browser botnet pass Cloudflare's own challenge. Turnstile still cuts the noise dramatically. It's a layer, not a guarantee.

A Note on Hiding Your Login Page

Nearly every brute force guide suggests moving your login from /wp-login.php to something like /my-secret-login.

We treat it as a nice extra. It cuts the noise: on the bakery store, the bot guessed more than a hundred possible login addresses and never found the real one. But it does nothing against a stolen password, the twelve-week attack would have found the page anyway, and clients forget the new address. Use it on top of real protection, never as the protection.

How We Handle Logins on the Sites We Host

On the sites we host as part of our managed WordPress security, the login gets every layer above. Every production site sits behind Cloudflare, with a browser check in front of the WordPress login page (the numbers on what that edge blocks are in our post on secure WordPress hosting). Every server runs Imunify360 and Fail2Ban: on a typical day our server firewalls hold about 800 addresses, nine in ten of them put there automatically for hammering a challenge more than a hundred times without passing it, and a login that uses a password from known leaked-password lists is blocked and sent to reset. A small plugin on every site stops username harvesting. Two-factor authentication and a Turnstile check on the login and reset forms go on any site on request, free on every plan.

None of that relies on a lockout counter, and none of it is a promise that nothing gets through. It's built so that a slow, patient guess like the one above still runs into a second factor or a block at the edge.

Getting This Right

Brute force attacks aren't going away, and the slow, quiet ones are the ones that get through. The defenses are well understood: stop the volume at the edge and the server, close the doors you don't use, retire the admin account, and make a correct password not enough on its own.

If you're not sure whether your setup handles brute force at the right layer, our WordPress security services can show you what's in place and what's missing.

FAQ

Is my WordPress site being brute forced right now?

Almost certainly. Every WordPress site on the internet gets probed by bots testing login credentials, and a security plugin's activity log will usually show failed logins. The real questions are whether your protection stops them before they reach your server, and whether a correct password alone is enough to get in.

How long does a brute force attack last?

As long as it needs to. Noisy attacks run for hours or days and burn out against a firewall. The one we cleaned up after ran for about twelve weeks, paced slowly enough that the lockout never fired, until a guess on the old admin account worked.

What are the two types of brute force attack on WordPress?

Traditional brute force tries many passwords against one username, usually admin. Credential stuffing tries email and password pairs leaked from other sites' breaches, a login or two per address, betting that people reuse passwords. Two-factor authentication stops both.

Is a brute force protection plugin enough?

Usually not on its own. A plugin blocks attacks after they reach your server, so the server still does the work, and per-address lockouts miss slow attacks spread across many addresses. A firewall at the edge stops the volume, and two-factor authentication stops a guessed password from working. A plugin is a reasonable backstop behind those.

Should I disable XML-RPC in WordPress?

If nothing on your site uses it, yes, ideally at the server or firewall so the request never loads WordPress. The main exception is Jetpack, which still needs XML-RPC; in that case, allow Jetpack's addresses and block the rest. The WordPress mobile apps and most integrations now use the REST API.

What's the difference between a regular brute force attack and one on XML-RPC?

Both guess passwords. Before WordPress 4.4, XML-RPC let attackers bundle hundreds of guesses into one request; that was fixed in 2015, so today it's one guess per request. The difference that remains is that XML-RPC sits outside the login page, so CAPTCHAs and most 2FA plugins on the login form never see it.

Can a brute force attack succeed if I have login limits?

Yes. Login limits count failures per address over a short window. An attacker who spreads guesses across many addresses and many weeks never trips them. That's how the twelve-week attack above got in. Two-factor authentication is what closes that gap.

How long would it take a hacker to brute force my password?

For a long, random password from a password manager, longer than anyone will spend: guessing it one login at a time through a website is hopeless. The passwords that fall are short, common, or reused from another site, which is why credential stuffing works and why the twelve-week attack chose an account named admin. A second factor makes even a guessed password useless.

Is there a two-factor authentication plugin for WordPress?

Yes, several, because WordPress core doesn't include 2FA. We use WP 2FA by Melapress on the sites we host; Wordfence and other security plugins include it too. Whatever you pick, turn it on for everyone who can log in, and remember it guards the browser login, not XML-RPC.

Why am I getting password reset emails I didn't request?

Usually because a bot is testing your login. Reset requests are a cheap way to check which usernames or emails exist, and they often arrive with a burst of failed logins. They can't get anyone in as long as your inbox is secure, so don't click them. Ask your host to check the logs and add a CAPTCHA to the login and reset forms.

Is a brute force attack the same as a DDoS attack?

No, though they overlap. Brute force is trying to get in; a DDoS is trying to knock the site offline. Because every WordPress login attempt costs the server real work, a large brute force run can slow or stop a site even when every guess fails.

What's the most important thing I can do to stop brute force attacks?

Make a correct password not enough by itself: turn on two-factor authentication for everyone who can log in, not just administrators. Then get rid of any account named admin, and make sure your host or firewall limits login attempts and blocks XML-RPC if you don't use it.

Why does my site slow down during brute force attacks?

Every login attempt that reaches your server makes WordPress start up, query the database, and run a deliberately slow password check. Multiply that by thousands and the server runs out of capacity for real visitors. That's why stopping it at the edge, before WordPress loads, matters.