Brute-force and login protection
A brute-force attack is a program trying thousands of passwords against a login page. Almost every WordPress site gets these attempts daily. Your hosting blocks much of it, and a few steps on your side finish the job.
What we do for you
- The firewall in Imunify360 blocks IP addresses that fail logins repeatedly or probe for known weak spots. See Imunify360.
- Imunify360 also watches logins to email, FTP, and SSH. After repeated failed attempts from the same IP address, that IP is blocked for a while.
- ModSecurity rules stop common attack patterns. See ModSecurity.
What you should do
1. Use strong passwords and two-factor authentication
This is the best defence. See Passwords and password managers and Protect your Barbrick account with two-factor sign-in.
2. Don't use admin as your WordPress username
Create a new administrator with a different username, log in as that user, and delete or demote admin. Attackers try admin first.
3. Limit login attempts in WordPress
Use the security checks under WordPress → Manage → Security in your control panel, or a reputable login-limiting plugin. See Harden WordPress security.
4. Protect the login page with a second password
Password-protect wp-login.php or the wp-admin folder at the server level. Bots then get stopped before they reach WordPress.
- Open Account → Hosting → your site → Files. Under Folder and server rules, click Manage.
- Under Folder settings, type
public_html/wp-adminand click Show. - Under Password protection, click Turn on, then add a username and password.
See Password-protect a folder. Allow admin-ajax.php through, or front-end features may break.
<Files admin-ajax.php>
Require all granted
</Files>
5. Turn off XML-RPC if you don't use it
xmlrpc.php is an old WordPress interface that lets attackers test many passwords in one request. Most sites don't need it. Block it in .htaccess.
<Files xmlrpc.php>
Require all denied
</Files>
The Jetpack plugin and some mobile apps use XML-RPC. Don't block it if you rely on those.
6. Block specific addresses
If your logs show repeated attempts from certain IPs, block them. See Block visitors by IP address.
Control which bots get in
Search engines, AI crawlers, and scrapers can make a lot of requests without logging in. Choose which ones reach your sites:
- Open Account → Hosting → your site → Security. On the Bot protection card, click Choose bots.
- Who's crawling you shows the busiest bots in the last 24 hours. Click Block it to block the top one.
- Under Known bots, switch off Allow for any bot you don't want.
- Tick Also list blocked bots in robots.txt if you want well-behaved bots told as well.
- If you block a search engine, tick I understand that blocking a search engine removes my sites from its results.
- Click Save.
How to spot an attack
Your access log shows many POST requests to /wp-login.php in a short time.
198.51.100.44 - - [30/Nov/2026:10:14:01 -0400] "POST /wp-login.php HTTP/1.1" 200 5482
198.51.100.44 - - [30/Nov/2026:10:14:02 -0400] "POST /wp-login.php HTTP/1.1" 200 5482
198.51.100.44 - - [30/Nov/2026:10:14:02 -0400] "POST /wp-login.php HTTP/1.1" 200 5482
A 200 on a failed WordPress login is normal. It shows the login form again. Many of them per second from one address is the sign. See Download raw access logs.
If you lock yourself out
Too many wrong guesses can get your own address blocked. See Locked out: your IP was blocked.
Note: Attacks that don't succeed can still slow your site. If you see slowness and many login requests together, see Why is my site slow?.
Still stuck? Ask us and we'll walk you through it.