By default, WordPress lists authors at /wp-json/wp/v2/users. Attackers use this endpoint to collect usernames, then try passwords against them. Hiding usernames does not replace strong passwords and MFA, but it removes free information from attackers.
The control
Block unauthenticated /wp/v2/users enumeration is in Aegisify WAF → API & Application → REST Protection (Pro). It is ticked by default, but it only takes effect after you enable Enable legacy REST hardening and progressive thresholds.
Exactly what is blocked
- Requests to
/wp/v2/usersand anything under it (such as/wp/v2/users/1). - Only GET and HEAD methods.
- Only from visitors who are not logged in.
The response is HTTP 403, and a wp_protect event with the reason user_enumeration is logged.
What keeps working
- Logged-in users (including the block editor author selector) can still use the endpoint.
- Other REST routes are unaffected.
Possible side effects
Some themes or headless front ends show author names or avatars by calling this endpoint anonymously. If an author box breaks, either add the specific route to the REST route allowlist or change the theme to use post data instead.
Related protections
Aegisify Shield can also block author-scan URLs (/?author=1) on the front end. See Block author scans.
Related: Enable REST API protection, WordPress REST API security risks.
