Can I set a rate limit for a cloudflare worker?

For a cloudflare worker, can I set a rate limit for that paricular worker? Also if I set a rate limite in that worker, when there is 429 (too many requests), any code inside the worker is not triggered, right?
2 Replies
zegevlier
zegevlier10mo ago
You can rate limit the worker with a rate limiting rule: https://dash.cloudflare.com/?to=/:account/:zone/security/waf/rate-limiting-rules And yes, if the request is blocked by this rate limiting rule, the worker is not triggered.
xing@moesif.com
[email protected]OP10mo ago
So if I want to log whenever a 429 happened, is there anything I can do? or nothing I can do.
Want results from more Discord servers?
Add your server