how to rate limit request to my api endpoint with cloudflare?

I am trying to build api endpoint with worker, now I am thinking about how to rate limit the request per cookie id with cloudflare. the api endpoint will be public, no need of auth. If my learning is correct, cloudflare can do this for me, so I don't need to do it in backend.
1 Reply
Cyb3r-Jak3
Cyb3r-Jak312mo ago
Cloudflare can only do it by IP for most plans https://developers.cloudflare.com/waf/rate-limiting-rules/
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.
Want results from more Discord servers?
Add your server