Rate limiting
Fastly provides primitives in VCL services that can be used to apply rate limiting to your service. This can help you control the rate of requests sent to your Fastly services and origin servers from individual clients or clients forming a single identifiable group. Learn more in our feature overview.
- ratelimit.check_rate — Determine if a user has exceeded a specified number of requests per second
- ratelimit.check_rates — Determine if a user has exceeded either one of two specified number of requests per second
- ratelimit.penaltybox_add — Add an entry to a penalty box
- ratelimit.penaltybox_has — See if a penalty box contains a value
- ratelimit.ratecounter_increment — Increment a value within a rate counter