Back to Insights
Security

Request rate tokens: next-generation traffic protection in WAF

Token buckets control each visitor’s request rate precisely, stopping credential stuffing and scrapers without hurting real users.

Why rate limiting matters

Credential stuffing, scrapers and scalper bots share one trait: many requests in a short time. Blocking by IP often hurts real users behind shared exits.

How token buckets work

Each visitor gets a bucket of tokens. Every request spends one, and tokens refill at a steady rate. Normal browsing rarely runs out, while bursts of abuse are held back.

Use different buckets by path, method or a custom key: stricter for login, looser for product pages.

Recommended setup

Run in log-only mode for a week, pick thresholds from the security logs, then switch to blocking to keep false positives low.

Ready to make your site faster?

Sign up for a free trial and our engineers will help you onboard and tune.