Detect ip of a city in a country

Hello guys I hope you are doing well i want to redirect the people who get the ip of ontario to a particular page and if you are in canada and not in ontario you will see another page
2 Replies
Mak Limah Biadab
Try using ip.src.city and ip.src.country but you need to write the expression of the logic yourself. Also, I not sure if this field lock by plan or not. https://developers.cloudflare.com/ruleset-engine/rules-language/fields/standard-fields/#ipsrccity https://developers.cloudflare.com/ruleset-engine/rules-language/fields/standard-fields/#ipsrccountry
Cloudflare Docs
Standard fields | Cloudflare Ruleset Engine docs
Most standard fields use the same naming conventions as Wireshark display fields ↗. However, there are some subtle differences between Cloudflare and Wireshark:
user
user12h ago
I don't exactly suggest trying to lock pages to city based on ip geolocation, as ip geolocation is not accurate enough to be consistent with identifying location
Want results from more Discord servers?
Add your server