What is an Account-Control Surface?
Understand the account-control surface and why account protection has to cover more than the login form.
Start with one API route and the work you need to protect. An export endpoint might need a limit on jobs started by each authenticated partner, while a public search endpoint might need a limit that protects the database from bursts. Write down what you will count, who shares the counter, the time window and what clients receive when they exceed it.
Choose the key according to who should share a budget. Several clients can share one office or mobile IP address. Conversely, one partner integration may send requests from many addresses. Where you have authenticated client information, use it to scope the budget to that integration.
Different routes deserve different limits:
| Route type | Example risk | Typical decision |
|---|---|---|
| Login | Credential stuffing, password spraying, account enumeration | Count failures, challenge, throttle, or block by risk context |
| Password reset | Inbox flooding, recovery abuse, account takeover setup | Lower thresholds, monitor target account, delay risky follow-up actions |
| Search or catalogue | Scraping, expensive origin work | Limit by route, fingerprint, query pattern, and client class |
| Checkout or payout | Fraud, carding, inventory abuse, money movement | Combine account, device, session, payment, and network evidence |
| API export | Data exfiltration, partner misuse | Limit by token, account, route, data volume, and time window |
| Admin or configuration | Privilege abuse, lateral movement | Require strong auth, strict thresholds, and reviewable evidence |
The same request volume can be normal on one route and suspicious on another.
Useful keys can include:
Keys can be combined. For example, counting export starts by authenticated client and route lets you cap that operation independently of the same client’s ordinary reads. Use a stable identifier for reporting and keep raw credentials out of logs.
Rate limits should not jump straight to permanent blocking. Common actions include log, alert, throttle, challenge, delay, temporary block, hard block, or review. The right choice depends on the route, evidence strength, business value, and false-positive cost.
A low-confidence signal on a public product route may only need logging. The same signal on password reset, payout, data export, or API-key creation may justify stronger friction.
429 Too Many Requests. If you provide Retry-After, verify that clients wait before retrying. Exercise both an over-limit request and a normal export with a client you control. See RFC 6585, section 4.Operators need to know:
Without that feedback, rate limiting becomes guesswork. With it, teams can tune thresholds, split noisy routes, lower false positives, and identify when attackers have moved to another path.
For Peakhour configuration, follow the advanced rate limiting tutorial. If you are limiting failed logins, see Protect a Sign-In Route for an example that counts response outcomes.
© PEAKHOUR.IO PTY LTD 2026 ABN 76 619 930 826 All rights reserved.