How to Block Automated Account Enumeration on a Login API A technical guide outlines how to block automated account enumeration on login APIs by making failed-authentication responses uniform, equalizing backend verification timing, and covering registration and password-reset endpoints, then layering traffic controls such as rate limiting and CAPTCHA. It walks through deploying SafeLine, a self-hosted WAF that filters HTTP/S as a reverse proxy, while noting its documentation does not establish an account-enumeration detector or account-aware throttling, so it should be treated as one layer of defense. Account enumeration happens when a login API reveals whether an account exists. An attacker submits candidate email addresses or usernames, then compares error messages, status codes, response sizes, or timing. The resulting list can support credential stuffing, targeted phishing, and account takeover. AI-assisted automation can help attackers generate candidate identities and adapt request patterns. For defenders, the practical concern is whether repeated requests reveal useful account information. This guide explains how to block automated account enumeration on a login API through application fixes, traffic controls, and verification. SafeLine is a self-hosted WAF that filters HTTP/S traffic as a reverse proxy. Its documented capabilities include IP-based rate limiting and CAPTCHA challenges. The supplied documentation does not establish an account-enumeration detector or account-aware throttling, so treat it as one layer of the defense. Source: SafeLine overview https://docs.waf.chaitin.com/en/home Use accounts and infrastructure you control. Prepare one existing test account and one nonexistent identifier, then submit incorrect passwords to both. Compare: A response such as "Account not found" versus "Incorrect password" gives an attacker a direct existence signal. Identical wording can still leak information if the status code or processing time differs consistently. Review application and edge logs for repeated login failures across many identifiers, unusually regular request intervals, and bursts concentrated on authentication endpoints. These are investigation signals, not proof by themselves. Shared networks, broken clients, and legitimate user mistakes can produce similar patterns. Make failed authentication responses consistent for nonexistent accounts and incorrect passwords. Use a generic message such as "Invalid credentials," with consistent status codes and response structure. Review the backend execution path as well. Returning immediately for an unknown account while performing expensive password verification for an existing one can create a timing signal. Have the application team evaluate equivalent verification work and test the outcome under realistic load. Check registration, password reset, and account recovery too. Fixing login alone leaves enumeration possible if another endpoint confirms the same identities. This step is essential: slowing requests does not eliminate information disclosed by each response. Select a Linux host and verify the documented prerequisites: Docker 20.10.14 or later, Docker Compose 2.0.0 or later, and at least one CPU core, 1 GB memory, and 5 GB disk. Check the architecture and CPU requirements in the deployment guide before choosing the host. That guide also documents an ARM licensing restriction. Source: installation requirements https://docs.waf.chaitin.com/en/GetStarted/Deploy Follow the official deployment procedure. The documented automatic installer requires root privileges, so review the procedure before executing it. Once installation finishes, open https://