How to block too many bad requests?

Hi there,

I have a question about rate limiting/bad requests and maybe you guys can help me.

I have a rate limit configured for my API (300 req/min) however this doesn’t
prevents a given user from making too many invalid requests in a given amount of time.

I would like to know if I can impose rate limiting for a given ip according to the amount of
bad requests that this ip produced. It is possible? Can I do this through cloudflare? With which product?

This is the closest you will get. Alternatively, you could log in your system the bad requests and send bans to Cloudflare firewall that are lifted some minutes after.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.