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
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 siteThanks But only can i block 10sec!?:NotLikeThis:

@Chaikahey..
-
on the free plan, yes
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.