WordPress brute force attacks: how to detect and stop them

Titelbild: WordPress Brute-Force-Angriffe erkennen und abwehren

In a WordPress brute-force attack, automated bots systematically try thousands of username and password combinations on your login until they gain access. You recognize it by many failed logins, high server load and lockout messages. You can fend it off with login limiting, two-factor authentication, strong passwords, a firewall and a closed XML-RPC.

If you look at the access logs of your WordPress site, you will probably be shocked. Even small, unknown sites are hit hundreds or thousands of times a day on wp-login.php wp-login.php. Mostly there are no people behind it but bots that try passwords without a break. This approach is called a brute force attack, roughly "with brute force".

In this article you will learn how such attacks work, how to recognize them, what they can do and which measures you can use to repel them reliably. This guide is a central part of our series on WordPress security. You will find a complete overview of all protective measures in our security checklist.

What is a brute-force attack?

In a brute force attack, a program tries to guess a password by systematic trial. The attacker does not need any special vulnerability in WordPress for this. They simply exploit the fact that the WordPress login page is publicly accessible and allows unlimited login attempts by default unless you restrict them.

The most important variants

  • Classic brute force: The bot tries all possible character combinations. With long passwords that is practically hopeless.
  • Dictionary attack: The bot uses lists of common passwords such as "123456", "password" or "summer2025". This is the most common variant and successful against weak passwords.
  • Credential stuffing: The attacker uses real credentials from data breaches at other services. Anyone who uses the same password everywhere is especially at risk here.
  • Password spraying: Instead of testing many passwords on one account, the bot tries one common password on very many accounts. This bypasses simple lockouts.
  • Distributed attacks: The attempts come from hundreds of IP addresses at the same time, so a single IP block achieves nothing.

Why is WordPress a popular target?

WordPress has the same login address everywhere: /wp-login.php and /wp-admin. The default username is often "admin", and the usernames can often be read via the author pages (?author=1) or the REST API. So the attacker often only has to guess the password. In addition there is xmlrpc.php, an old interface through which many passwords can be tested in a single request.

Fending off brute force attacks on WordPress: featured image

How do you recognize a brute force attack?

Often you notice nothing for a long time. These signs point to an ongoing attack:

  • Your security plugin reports many failed logins or blocks IP addresses.
  • The website loads extremely slowly or becomes temporarily unreachable even though regular visitor traffic is normal. Every single login attempt triggers PHP and database queries, consuming valuable server resources.
  • The host sends a warning about high load or temporarily blocks access.
  • You receive emails about password resets or blocked logins that you did not trigger.
  • In the access logs, masses of POST requests for wp-login.php or xmlrpc.php files appear.
  • Suddenly there are logins at unusual times or from foreign countries.

How to read the logs

In the hosting panel you can usually find the access logs. Search for POST /wp-login.php or POST /xmlrpc.php. If an IP address shows up hundreds of times in a short period, that is a clear pattern. Also pay attention to the HTTP status: many 200 responses on wp-login.php (or 403/429 responses if a firewall is already blocking requests) point to failed attempts, whereas a 302 redirect after a POST login usually indicates a successful login. If a 302 suddenly appears after a long series of failed attempts, you should immediately change passwords and check the site.

Infographic: fending off brute force attacks on WordPress
Fending off attacks: the most important steps (click to enlarge)

What can happen in a successful attack?

If the login succeeds, the attacker has the rights of the user. For an administrator that is everything. Then plugins can be installed, files changed, users created and content swapped. The consequences are the same as with any hack: redirects, spam, data theft, blacklists. If that has happened, the article WordPress hacked: What to do nowhelps you, and for the cleanup the article Remove WordPress malware.

Even without a successful login, brute-force attacks are not harmless: they consume massive server resources, hurt your loading times and Core Web Vitals, and in the worst case can cause your host to throttle or temporarily suspend your plan.

How secure is your password really?

The time a bot needs depends directly on the length and randomness of the password: while 8 characters with uppercase/lowercase letters and numbers are often cracked in a few hours, 12 truly random characters (including symbols) already require several decades, and 16 random characters from the full character set practically billions of years.

Password Example Impact
8 characters, lowercase only summertime cracked in seconds to minutes
8 characters, mixed Som#2025 cracked in hours to days
12 characters, mixed randomly chosen years to decades
16+ characters or passphrase four random words practically uncrackable

What matters is not only the length, but that the password is not on a word list and has not already appeared in a data breach. A password manager generates and stores long random passwords so you do not have to remember any. You will find more in the article Secure your WordPress login.

The most effective measures against brute force

1. Limit login attempts

After three to five failed attempts the IP address or the user is blocked for a few minutes, longer on repetition. This is the most effective single measure against brute force. Plugins such as Limit Login Attempts Reloaded, Wordfence or Solid Security offer this. Important: also use a lock at user level so distributed attacks with changing IPs do not slip through.

2. Enable two-factor authentication

Even a correctly guessed password is then not enough. The attacker would additionally need the one-time code from your authenticator app or a hardware key (passkey). Enable 2FA at least for all administrators and editors. Proven free plugins such as WP 2FA, Wordfence, or Solid Security set this up in just a few minutes per user.

3. Enforce strong, unique passwords

Require at least 16 characters for all accounts with extended rights. Forbid passwords that appear in known data breaches. For all accounts: one password per service.

4. Change default usernames

If the username is not "admin" and does not match the author name, the attack becomes much harder. Create an administrator with an unusual username and use a separate account with lower rights for posts. Also prevent usernames from being read via ?author= and the REST API.

5. Switch off XML-RPC

If you do not need an app or service that uses xmlrpc.php (for example Jetpack or the WordPress app), disable the interface. That works with a plugin or via .htaccess. This closes the so-called system.multicall function, which allows a bot to test hundreds of passwords in a single HTTP request.

6. Hide the login URL

With a plugin you can move wp-login.php to your own address, for example /mein-eingang. In security terms, this is known as security by obscurity—not real protection, since the new URL can still be discovered. However, it drastically reduces automated bot background noise and noticeably relieves your server. Always combine it with the other measures.

7. CAPTCHA or bot protection

A CAPTCHA or an invisible bot check on the login filters automated requests. Choose a privacy-friendly variant, for example Cloudflare Turnstile or a self-hosted solution, and check whether you need consent for it.

8. Use a firewall

A Web Application Firewall (WAF) detects malicious bots based on behavior, IP reputation, and attack patterns, blocking them before they even reach WordPress or PHP. That relieves the server particularly strongly. We explain the differences between plugin, cloud and server firewall in the article WordPress firewall.

9. Block countries and IP ranges

If your site is only relevant for visitors from Germany, Austria and Switzerland, you can restrict access to the login to these countries or to your own IP address. That is a hard but effective measure. Note that you can lock yourself out abroad.

Measures compared

Measure Protection Effort Side effect
Limit login attempts high low Locking yourself out after typos
Two-factor login very high low An extra step at login
Strong passwords very high low Password manager needed
XML-RPC off medium low Some apps stop working
Change login URL low to medium low Remember the new address
CAPTCHA medium low Privacy and convenience
Firewall high low to medium False alarms possible
IP or country block high medium Access abroad restricted

Step by step: secure your login in 30 minutes

  1. Create a backup so you can go back if something goes wrong (see Create a WordPress backup).
  2. Install a well-maintained security plugin such as Wordfence, Solid Security, or Limit Login Attempts Reloaded (paired with WP 2FA) that supports login limiting and 2FA.
  3. Activate login limiting: three to five attempts, then a 15 to 30 minute block.
  4. Set up 2FA for all administrators and store the recovery codes safely.
  5. Change all weak passwords and replace the user "admin".
  6. Disable XML-RPC if you do not need it.
  7. Hide the author URLs and the user list of the REST API.
  8. Test the login in a private window so you do not lock yourself out.
  9. After a week, check the logs: how many attempts were blocked?

If you lock yourself out

That happens faster than you think, especially after setting up locks or 2FA. This is how you get back in:

  • Too many attempts: Wait for the lock time to expire or rename the plugin folder via FTP. That deactivates the plugin.
  • 2FA device lost: Use your saved recovery codes. Without them, your only option is to rename the plugin folder via FTP or disable 2FA directly in the database.
  • Login URL forgotten: Deactivate the plugin via FTP, then wp-login.php is reachable again.

What brute force protection alone does not achieve

The login is only one of several doors. Even if it is perfectly secured, attackers can get in via outdated plugins. That is why updates, firewall and backups always belong with it. How to detect and close vulnerabilities is described in the article WordPress vulnerabilities: detect, close, prevent. And if you would rather hand all this over: the Security package costs $32 per month, complemented by Backups for $16 per month and Wartung for $99 per month.

Practical example: a week in the login log

A small blog without protection is hit about 11,000 times a week on wp-login.php from about 400 different IP addresses in 40 countries. Most attempts use the username "admin" and the twenty most common passwords. The server is temporarily overloaded, the host reports anomalies.

After securing it (limit to four attempts, 2FA, XML-RPC off, cloud firewall), the number of requests that reach WordPress at all drops to under 300 per week. The rest is caught at the edge by the firewall. The site loads faster, the host reports nothing anymore, and not a single attempt made it as far as the password check. This example shows: the measures are simple, but very effective in combination.

Key terms around brute force

Bot

A program that automatically sends requests to websites. Many bots are harmless (search engines), others look specifically for vulnerabilities and logins.

Botnet

A network of hijacked computers and devices that carry out attacks remotely. That is why brute force waves often come from thousands of different IP addresses.

Rate limiting

Limiting how many requests an address may make in a period of time. It slows automated attacks without disturbing real visitors.

Credential stuffing

Trying stolen credentials from data breaches on many services. It only works because many people reuse passwords.

XML-RPC

An older WordPress interface for apps and external services. It allows many login attempts in a single request and is therefore often attacked.

Authenticator app

An app that generates a one-time code every 30 seconds. It serves as the second factor at login.

Brute force protection in everyday life: routines and monitoring

The setup is one-time, but protection lives on routine. Schedule these steps firmly:

  • Weekly: A quick look at the security reports. How many attempts were blocked? Are there spikes? Do they come from individual countries or networks?
  • Monthly: Check the user list, delete accounts no longer needed, review block lists and take your own addresses out of blocks.
  • Quarterly: Review settings, update software and test whether 2FA is active on all accounts.
  • In case of anomalies: Immediately change passwords, save access logs, and inform your host. Keep an eye on three key metrics in particular: blocked login attempts per day, requests to xmlrpc.php, and unusual spikes from specific countries.

Which metrics are meaningful?

Metric Normal Warning sign
Blocked login attempts per day A few to a few hundred Sudden rise to a multiple
Successful logins from new locations Rare, known Unknown countries or times
Requests to xmlrpc.php Zero (if disabled) Permanently high numbers
Server load Stable Spikes without visitor growth
Password reset emails Only your own Emails you did not trigger

What to do in an emergency: brute force is running right now

If you are in the middle of an attack wave, this emergency procedure helps you:

  1. Activate active blocks: Temporarily tighten login limiting (for example two attempts, 24-hour block).
  2. Protect the login temporarily: Restrict wp-login.php on the server to your IP address or put a server password in front.
  3. Change important passwords: Start with all administrators.
  4. Check users: Are there new or changed accounts?
  5. Check files: Were files changed? If so, follow the process in the malware removal article.
  6. Switch on a cloud firewall: If you do not have one yet, temporarily route the traffic through a cloud service that catches bot waves at the edge.
  7. Relax afterwards: When the attack is over, normalize the settings but keep 2FA and limiting.

Myths about brute force attacks

  • "My site is too unknown." Bots scan address ranges, not reputations. You are found without anyone knowing your site.
  • "A special character makes the password secure." Length and randomness count. "Passwort1!" is on every word list.
  • "If I change the login URL, I am safe." That reduces noise, but not the risk. Without a strong password and 2FA the site stays vulnerable.
  • "My host protects me." The host secures the server, but not automatically your WordPress login.
  • "After the block the attack is over." Attackers change IP addresses. Only several layers of protection hold.
  • "That takes a lot of effort." The most important measures are done in half an hour and cost little or nothing.

Reading login logs: How to evaluate attack attempts

While server logs show all raw HTTP requests, your security plugin neatly summarizes actual login events. Once a week, review this plugin login log and look for patterns rather than isolated events.

What a normal picture looks like

Individual failed logins happen on every site, for example through typos or forgotten passwords. That is no cause for concern. It becomes conspicuous when many attempts arrive within a short time from the same address or the same network.

Warning signs in the log

  • Hundreds of attempts per hour with changing usernames such as "admin", "test" or the company name.
  • Many requests to the file xmlrpc.php, although you do not use it.
  • Logins at unusual times or from countries where you have no customers.
  • A successful login immediately after many failed attempts.

How to respond

Only block conspicuous addresses permanently if they are clearly malicious, because some networks are shared by many users. An automatic block for a limited time after several failed attempts works better. Also check whether the username "admin" still exists; if needed, create a new administrator account and delete the old one (WordPress does not allow renaming usernames directly).

Briefly document conspicuous waves with the date and the measure taken. After a few months you can see whether the attacks are increasing and add more protection early, for example with two-factor login or restricting access to the login page.

Conclusion

WordPress brute-force attacks are everyday reality, yet completely manageable with the right layers of defense. When you limit login attempts, enable 2FA, use strong passwords, disable XML-RPC, and place a firewall in front of your site, automated attacks come to nothing. You will find everything else on login protection in the article Secure your WordPress login. If you need support, take a look at our security offer or write to us via the Contact page.

Frequently asked questions about brute force attacks

Is every WordPress site attacked?

Practically yes. Bots scan the web for wp-login.phpregardless of the size and fame of the site. You are not meant, you are just found.

How many failed attempts should I allow?

Three to five attempts are a good value. After that you block the IP address or user for 15 to 30 minutes and extend the block on repetition.

Does it help to change the login URL?

It reduces the background noise and relieves the server, but is not real protection. Combine it with limiting, 2FA and strong passwords.

Is two-factor authentication really necessary?

For administrators yes. It protects even if the password is known, for example through a data breach. The effort is small, the benefit very large.

Should I disable XML-RPC?

If you do not use an app or service that needs it, yes. Check beforehand whether Jetpack or other tools depend on it.

What is the difference between brute force and credential stuffing?

Brute force guesses passwords systematically. Credential stuffing uses real credentials from data breaches at other services. Unique passwords and 2FA help against both.

Can a brute force attack take down my site?

Yes. Many requests burden the server even if no login succeeds. A firewall and limiting at the edge are therefore also a performance topic.

How do I know whether an attack was successful?

Check the user list for unknown accounts, the files for new changes and the logs for successful logins after many failed attempts. When in doubt, reset all passwords and scan the site.

Are free plugins enough?

For getting started yes. It is important that they are maintained and that you configure them correctly. For important sites, professionally managed protection is worthwhile.

What does professional protection cost?

At Boudmedia $32 per month for the security package. That is less than a single hour of emergency help, which quickly adds up in a hack.

Amine Boudounite

About the author

Amine Boudounite

Amin is the founder of Boudmedia and builds WordPress websites, online shops and business sites. In his guides he explains technology, loading speed and visibility so that you can apply them without any prior knowledge.

Contents
Help with your WordPress site?

We take a free look and tell you honestly what is needed and what it costs.

Share post

You might also be interested in

WordPress Backend Slow? How to Speed Up the Dashboard

Wenn das WordPress-Dashboard träge ist: Ursachen und Maßnahmen im Überblick.

Finding and Fixing a WordPress Plugin Conflict

So findest du den Plugin-Konflikt in WordPress und löst ihn ohne Datenverlust.

Google Shopping with WooCommerce: How to Make Your Feed Error-Free

Wie ein sauberer Produktfeed für Google Shopping aussieht und welche Fehler du in WooCommerce vermeiden kannst.

Problems with your WordPress site? We fix them at a fixed price.

  • Free check of your site
  • Honest assessment of what is needed
  • Fixed price before we start
  • Reply within 24 hours on business days
Scroll to Top