11 WordPress ServicesView all
8 industry verticalsAll industries
12 UK locationsAll locations
Home/Blog/Security
Security9 November 2026· 6 min read

WordPress Brute Force Attacks: How to Detect and Stop Them

Your WordPress admin is being hit with repeated login attempts. Brute force attacks are extremely common on WordPress and entirely preventable with the right configuration.

A brute force attack on WordPress is a systematic attempt to guess your admin username and password by trying thousands of combinations automatically. WordPress sites are targeted constantly — the /wp-admin and /wp-login.php URLs are publicly known and bots probe them around the clock. The good news: brute force attacks are entirely preventable with a few specific measures.

How to detect a brute force attack in progress

Install Wordfence Security (free) if you have not already. Under Wordfence → Tools → Live Traffic, you can see login attempts in real time. Under Wordfence → Scan → Results, you will see a summary of recent failed login activity. Your hosting control panel may also show CPU or bandwidth spikes at unusual times — these often correspond to login attack waves.

WordPress security services →

Protection 1: Rate limit login attempts

Enable login attempt throttling so that after a set number of failed attempts, the IP address is temporarily blocked. In Wordfence, go to Wordfence → Firewall → All Firewall Options → Brute Force Protection. Set Failed Login Attempts Before Lockout to 5 and Lockout Duration to 60 minutes. This breaks automated bots that rely on rapid repeated attempts.

Protection 2: Enable two-factor authentication

Two-factor authentication makes stolen passwords useless — the attacker also needs access to your authenticator app or email to log in. Enable it via Wordfence → Login Security → Two-Factor Authentication or install the WP 2FA plugin. Require it for all administrator and editor accounts. This is the single most effective measure against account takeover.

Protection 3: Move or block the default login URL

The vast majority of WordPress brute force bots target /wp-admin and /wp-login.php. Use WPS Hide Login to change your login URL to a custom path known only to you. Add this to your .htaccess to return a 404 on the original login paths — this stops bots that have already discovered your domain from even attempting to reach the login form.

Protection 4: Block IPs via Cloudflare

If you are under an active attack from specific IP addresses or countries, use Cloudflare to block them before the traffic even reaches your server. Create a WAF (Web Application Firewall) rule in Cloudflare to block requests targeting /wp-login.php from non-whitelisted IPs or countries. This stops the attack at the CDN edge — protecting both your site and your server resources.

Protection 5: Use strong, unique credentials

Ensure your admin username is not "admin" — this is the most commonly targeted username in brute force attacks. Use a randomly generated password of at least 20 characters. Use a password manager (1Password, Bitwarden) to store it. Never reuse passwords across sites. These measures make successful brute force attacks computationally impractical even if rate limiting is bypassed.

ImportantIf you are on shared hosting and under a heavy brute force attack, the resource consumption from the attack itself — even with login protection blocking attempts — can slow your site for legitimate visitors. Cloudflare's free plan blocks attack traffic before it reaches your server and is worth setting up regardless of whether you are under active attack. It also provides a significant performance benefit.

Frequently asked questions

How do I know if WordPress is under a brute force attack?+

Signs include: your server becomes slow or unresponsive during the attack, your hosting provider sends a resource usage warning, your WordPress security plugin or server logs show hundreds of failed login attempts from one or multiple IP addresses, or you receive lockout notifications if you have login protection active. Use Wordfence or Sucuri to view live login attempt logs.

Does changing the WordPress login URL stop brute force attacks?+

Moving the login URL from /wp-admin to a custom path stops automated bots that target the default WordPress login URL. It is a worthwhile security measure but not sufficient on its own — sophisticated attackers can discover custom login paths. Use it in combination with rate limiting and two-factor authentication rather than as a standalone defence.

Should I block countries from accessing my WordPress site?+

Geo-blocking can significantly reduce brute force traffic if the attacks consistently originate from specific countries. Cloudflare offers free country-level blocking. However, block conservatively — your customers may use VPNs or travel, and over-aggressive geo-blocking can lock out legitimate users. Focus on blocking login access from countries you do not serve rather than blocking the entire site.

How do I enable two-factor authentication on WordPress?+

Install the WP 2FA plugin or the Google Authenticator plugin. After activation, go through the setup wizard and choose your 2FA method — authenticator app (most secure) or email code. Require 2FA for administrator accounts at minimum. Some security plugins like Wordfence have 2FA built in and can require it for all users above a certain role.

Related service

If your site has already been compromised, or you want a comprehensive security audit and hardening setup rather than piecemeal fixes, our WordPress security service covers the full threat surface — login protection, file integrity, malware scanning and firewall configuration.

WordPress Security →

Next article

Troubleshooting

WordPress White Screen of Death: What It Means and How to Fix It

→
← All articles