IP geoip subdivision

I’m trying to block users from Ontario CA via WAF custom rule (I have the business plan). This is my expression :
ip.geoip.subdivision_1_iso_code eq “ON”
But it doesn’t seem to work.
Thanks for your help.

The documentation says this field represents the ISO 3166-2 code for the region. So this should the CA-ON, and not just ON. This is also in line with the example given in the documentation, GB-ENG (for England).


Thanks @GeorgeAppiah
However, I’m not sure if it’s ip.geoip.subdivision_1_iso_code or ip.geoip.subdivision_2_iso_code in my case. I will make some tests.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.