Cloudflare Firewall Logic AND OR XOR

My brain keeps using OR but when I test it, Cloudflare actually needs AND to do what I want. I am very confused.

Please someone kindly explain the difference between AND and OR, and optionally XOR. With examples please.

Have a search online for a break down of logical operators. Effectively AND means both must be true, OR means either can be true, XOR means one or the other must be true but not both.

People tend to get confused when using AND/OR with ‘not’.

1 Like

Expression 1: IP is not in {,}
Expression 2: Request Uri contain site/admin
Expression 3: ASN is not 12345

1 or 2 or 3, action block = nothing is blocked
1 and 2 and 3, action block = working

What am I missing?

Impossible. If ANDing three conditions works, then ORing them also works.
Unless something is wrong with your OR rule syntax.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.