Rule for US states on ip.src.region_code

What is the name of the domain?

multiple domains example.com

What is the issue you’re encountering

I have a redirect rule setup to redirect traffic from a list of US states using the ip.src.region_code, however it’s redirecting visitors who are not in the US. (ip.src.region_code eq “AL” or ip.src.region_code eq “AR” or ip.src.region_code eq “FL” or ip.src.region_code eq “ID” or ip.src.region_code eq “IN” or ip.src.region_code eq “KS” or ip.src.region_code eq “KY” or ip.src.region_code eq “MS” or ip.src.region_code eq “MT” or ip.src.region_code eq “NE” or ip.src.region_code eq “NC” or ip.src.region_code eq “OK” or ip.src.region_code eq “SC” or ip.src.region_code eq “TX” or ip.src.region_code eq “UT” or ip.src.region_code eq “VA”). But a user in the country of Mauritius is being blocked.

I can’t find any specific documentation on the possible values of ip.src.region_code. Mauritius is MU so it’s not as simple as the country code going in there instead.

I would try adding another clause to the rule. (ip.src.country eq "US" and (...region matches...))

3 Likes

Maybe this…
https://www.maxmind.com/download/geoip/misc/region_codes.csv
…but doesn’t seem MU region codes clash with the US, but will clash with others so using a country around the region codes as suggested is good practice.

2 Likes

Ok great. Thanks for the help!