I have a rule I use for all my site to block countries it works fine.
(ip.geoip.country in {“DZ” “BR” “KH” “DO” “IN” “ID” “IR” “IQ” “MY” “MM” “PH” “RU” “TH” “AE” “LK”})
But on one site it only works with WWW but not for root. I have tried adding URI but nothing works.
Sorry if the terminology is wrong , these are both Security > WAF > Security - Custom rules
Both have the same Expression
The DNS is setup a little different with bensonpercival.com having a cname for www.
If you use a VPN for one of the disallowed countries you should see the problem. I added a www to root rule on bensonpercival.com to see if it solves the issue, as putting www when VPN from a blocked country then it doesn’t redirect to root.