Precedence Worker and Security

#1

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

0 Likes

#2

I believe Workers run before everything.

0 Likes

#3

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

#4

Great ! Thanks !

0 Likes