A bot that guesses passwords sends thousands of attempts. Keel counts failed logins per address, blocks the address for a while after a few, and bans it for good if it keeps coming back. It also catches attacks spread over thousands of addresses, which per-address limits alone would miss.
Before you start: the visitor IP
What counts as a failed login
- A wrong password, on the WordPress login or a WooCommerce or other login form.
- A wrong two-factor code.
- Visiting
wp-login.phpor/wp-adminwhile the login page is hidden. - With Keel Pro, wrong application passwords and login calls to
xmlrpc.php.
Blocks and bans
In Keel › Firewall › Failed logins & bans:
- Block addresses after failed logins: after Failed logins allowed failures within Counted within, the address is blocked for Then block the address for. A successful login from it starts the count again. The first block is temporary, so a person who mistyped can try again later.
- Ban repeat offenders for good: an address blocked Ban for good after times within Blocks counted within is banned permanently. Every kind of block counts: failed logins, fake usernames, file scanning and form spam.
- Block it from the whole website: on, a blocked address sees “Access denied” on every page; off, it can still browse the site but not log in.
Attacks spread over many addresses
- Pause an account after: counts failures per account, from any address. It stops slow attacks where thousands of addresses each try once. Password logins for that account pause for the block length. With Keel Pro, the owner can still log in with a login link.
- Block anyone trying fake usernames: bots try names like
adminon sites that have no such user. Their address is blocked on the first try. Names that really exist are never treated as fake. - Block anyone who tries a username that does not exist: stricter; catches every invented name, but a person who mistypes their username is blocked too.
Unblock someone
- Open Keel › Firewall › Blocked IPs. Temporary blocks and permanent bans are listed separately, with the reason and what the address tried.
- Press Unblock for a temporary block, or Unban for a permanent one.
- To stop it happening again, add the address to Always allow in Firewall › Allow & block lists. Allowed addresses skip every lockout, filter and block list.
If you are the one blocked, log in from another network, such as your phone’s mobile data, and unblock your address. Or wait for the block to end.
Sharing bans between your sites
With Share permanent bans with all my sites (Firewall › Blocked IPs), an address banned on one of your sites is banned on the others too. With Stop banned addresses in .htaccess (Pro), the web server refuses banned addresses before WordPress starts, which also protects cached pages.
Every setting on this screen
The same explanations you see next to each setting in Keel.
Keel › Firewall › Failed logins & bans
| Setting | What it does |
|---|---|
| Block addresses after failed logins | Wrong passwords, wrong two-factor codes and visits to wp-login.php or /wp-admin while the login page is hidden all count. |
| Failed logins allowed | From one address. A successful login from it starts the count again. |
| Counted within | Failed logins older than this no longer count. |
| Then block the address for | A first block is temporary, so a person who mistyped can try again later. |
| Ban for good anyone who tries to log in on wp-login.php | Only when the login address is hidden (Login & accounts > Login page). Your real users log in on the new address, so anyone sending a username and password to the old one is a bot or an attacker, and is banned on the first try. Just opening the old address still counts as a failed login. Whitelisted addresses are never banned. |
| Block it from the whole website | On: the address sees "Access denied" on every page until the block ends. Off: it can still browse the site, just not log in. |
| Ban repeat offenders for good | Every block counts: failed logins, fake usernames and file scanning. A banned address can never reach the site again; lift it in Firewall > Blocked IPs. |
| Ban for good after | With 3, an address blocked 3 times is banned for good the next time it misbehaves. |
| Blocks counted within | Older blocks are forgotten. |
| Block anyone trying fake usernames | Only bots try "admin" on a site that has no user called admin. Their address is blocked on the first try, for the time set under File scanning. |
| Fake usernames | Separated by spaces. Names that really exist on this site are never treated as fake. |
| Pause an account after | Counted per account from any address, within the days above. Stops attacks spread over thousands of addresses. Password logins pause for the block length; the owner can still log in with a login link (Keel Pro). 0 = off. |
| Block anyone who tries a username that does not exist | Bots guess names like "admin" or "test". Strong, but a person who mistypes their username is blocked too (they can be unblocked in Blocked IPs). |
| Email me about each block | One email per address or account per hour, to the reports address. The weekly email sums them up anyway. |
Keel › Firewall › Blocked IPs
| Setting | What it does |
|---|---|
| Share permanent bans with all my sites | Addresses banned for good here are sent to the Keel Hub, and addresses banned on your other sites are banned here too (checked every hour). Needs the site to have joined the Hub. Remove an address for every site in the Hub > Banned IPs. |
| Stop banned addresses in .htaccess (Pro) | Permanent bans are also written to .htaccess, so the web server refuses them before WordPress even starts, and cached pages are protected too. Only on Apache / LiteSpeed when the visitor IP is read from the direct connection. |