Per-username lockout
Per-username lockout protects against attacks that come from many IP addresses at once. In a distributed attack, a botnet tries one username from hundreds of different IPs. No single IP reaches the attempt limit, so the normal lockout never triggers. Per-username lockout catches this by counting failures against the username too.
How it works
Every failed sign-in is counted twice: once for the visitor’s IP, and once for the username that was tried. When the failures for one username, from any IPs combined, reach three times your attempt limit, that username is locked out for everyone.
With the defaults, the limit is 5 attempts, so a username is locked after 15 failed attempts in the 10-minute window. The lockout lasts as long as your Short lockout setting (15 minutes by default).
While a username is locked, every sign-in attempt for it is refused, from any IP, and even with the correct password. Visitors see your usual lockout message.
Why three times the limit?
A real person can legitimately fail a few times from several places: a phone, a laptop, an old saved password in a browser. The higher threshold keeps one forgetful user from locking their own account. It still stops a coordinated attack quickly.
What counts
- Failed attempts that reach the sign-in check. The attempts are counted in the same observation window as the IP count.
- The username as typed. It’s case-insensitive and extra spaces are ignored. A username and an email address are counted separately, so
samandsam@example.comeach have their own count. - Usernames that don’t exist. Attackers often guess at names, so Shield counts any name, real or not.
What doesn’t count
- Whitelisted IPs. Attempts from a whitelisted IP aren’t counted. These IPs can also sign in while a username is locked.
- Attempts during a lockout. These are refused and don’t add to the count.
Settings
There is no separate setting for this feature. It follows your normal lockout settings:
- It turns on and off with Enable lockout.
- The count is based on Max attempts (three times the number) and the Observation window.
- The lockout length is your Short lockout.
To make username lockout trigger sooner, lower Max attempts. To make it trigger later, raise it. All of these settings are on the Lockout tab. See “Set attempt limits and lockout times”.
Seeing and clearing locked usernames
On the Lockout tab, the Locked usernames list shows each locked name, the reason and the time left. Click Unlock next to a name to lift the lockout right away.
Honeypot usernames
When someone tries a honeypot username, such as “admin”, Shield locks that IP right away. On the standard login form and the WooCommerce login, the username itself is not locked: every other IP that tries it gets its own honeypot lockout. See “Honeypot usernames”.
A word of caution
Because a locked username is locked for everyone, an attacker who deliberately fails against a real user’s name can stop that user from signing in until the lockout ends. This is a trade-off of any username lockout. To reduce the impact:
- Keep the Short lockout modest (15 minutes is a good default).
- Add trusted IPs, such as your office, to the whitelist. People on those IPs can still sign in.
- Turn on two-factor authentication and other protections for accounts that matter.
- Use the unlock button when a real user is affected.
Related topics
- How lockout works
- Set attempt limits and lockout times
- Escalating lockouts
- Honeypot usernames
- Unlock an IP
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!