Attackers often guess common usernames such as “admin”, “administrator”, or your site name. Block unknown usernames stops these attempts early. It is enabled by default.
Where to set it
Aegisify Shield → Login Guard → Overview → Baseline Login Protection → Block unknown usernames.
How it works
When someone tries to log in with a username or email that does not belong to any WordPress user:
- In Block mode, the attempt is rejected and logged as an unknown-username block.
- In Log & Alert mode, the attempt is logged but allowed to fail normally.
The visitor always sees the standard message “Invalid username or password”, so attackers cannot use it to learn which usernames exist.
Pro: stronger responses
- Unknown username threshold (default 3): a separate, lower lockout threshold for unknown-username attempts.
- Username enumeration detection: spots tools that cycle through many usernames.
- Permanently block unknown-username attacks when the threshold is reached. Use with care: a threshold of 1 permanently blocks an IP after a single failed login with a non-existent username, which can catch real people who mistype their login. Permanent blocks can be reversed in Login Guard.
Related protections
Hide your usernames in the first place:
- Block author scans (
?author=1URLs). - Block anonymous REST user endpoints in Hardening.
Related: Basic brute-force protection, Custom lockout rules.
