I have to setup a firewall rule to block IP by country

which step to setup a firewall rule to block IP by country - Only US and Canada IP have the right to go to my e-commerce website

ip.geoip.country not in {“CA” “US”} Then Block

1 Like

Thank you Paul but I have this fire wall setup and I have to change it to makes sure that only US and canada have access to our e-commerce. Can I upload your solution? I did not set up this rule. All countries are listed

Field

Country

Or

Operator

equals

Value

France

e.g. GB

And

Country

Or

equals

Germany

e.g. GB

And

Country

Or

equals

Belgium

e.g. GB

And

Country

Or

equals

Germany

e.g. GB

And

Country

Or

equals

Italy

e.g. GB

And

Country

Or

equals

Portugal

It is simpler to allow list countries than to block list them

Saying “ip.geoip.country not in {“CA” “US”} Then Block”

is simpler than saying
“ip.geoip.country in {“list every other country in world”} Then Block”
or
“If country = “a” or if country = “b” … for every country in the world Then Block”

Feel free to use “ip.geoip.country not in {“CA” “US”} Then Block” if you want

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