Precedence Worker and Security

Hi There

I couldn’t find this in the docs. But let’s say that any security rule is triggered from any setting (WAS, Basic Security Challenge in Page Rules…). Will this trigger before or after the Cloudflare worker? What’s the precedence/flow with this? Are these security steps executed before hitting a worker?

Kind Regards

I believe Workers run before everything.

There was a discussion about this from Workers feedback:

Cloudflare Workers Beta Feedback

So basically it’s
CF DNS > WAF (IP or Rules) > Rate Limiting > Worlers > Load Balancing > Argo

Security Settings run before Workers.

1 Like

Great ! Thanks !