Skip to content

Rate Limiting.

Bounding the number of authentication attempts per identifier, IP, or other key per time window — the primary defense against credential-stuffing and brute-force attacks on login endpoints.

Per-user rate limiting alone is what credential stuffing defeats — the attacker spreads attempts across thousands of accounts, hitting the per-IP rate at much higher absolute volumes than any single account's failed-login threshold. The defense requires composite limits (per-IP + per-IP-range + per-ASN + per-geo + per-device fingerprint) at the edge plus per-account anomaly scoring deeper in the stack.

Common questions

What's the right failed-login threshold?

How do I rate-limit without locking out legitimate users?

Should rate limiting be per-user or per-IP?

Related terms

In the guides

Last updated 2026-05-15.