Temporary Ban/Rate-Limit for Excessive Requests in Cloudflare?

Hi everyone, I'm experiencing a situation where my website's backend is being overwhelmed by intense spam requests. Although I can ban users or set request limits on my server side, I'm looking for a solution within Cloudflare. Is there a feature or a configuration option in Cloudflare that allows for automatically applying a temporary ban or rate limit (for example, blocking access for 10 minutes) when a user sends an excessive number of requests at once? Any advice or best practices would be greatly appreciated. Thanks!
5 Replies
Chaika
Chaika4w ago
Every plan including free can make rate limiting rules, Security -> WAF -> Rate Limiting Rules pretty limited on free, but you can Edit Expression -> type true and put a simple of like 20 requests per 10 seconds, or whatever makes sense for your site
Muziky
MuzikyOP3w ago
Thanks But only can i block 10sec!?:NotLikeThis:
No description
Muziky
MuzikyOP4d ago
@Chaikahey.. -
asuffield
asuffield4d ago
on the free plan, yes
asuffield
asuffield4d ago
Cloudflare Docs
Rate limiting rules · Cloudflare Web Application Firewall (WAF) docs
Rate limiting rules allow you to define rate limits for requests matching an expression, and the action to perform when those rate limits are reached.

Did you find this page helpful?