Blocking Users by Country
PreviousHTML5 Geolocation with IpForensics fallbackNextDetecting Users Currency or Currency Personalisation
Last updated
Was this helpful?
Last updated
Was this helpful?
This example shows you how to restrict your content from a list of countries.
We use the ISO 3166 ALPHA-2 Country Codes. You can curate a blacklist or whitelist of your own by looking up the countries you'd like to include at .
This simple example shows an alert with This content is not available at your location if the user is from a country in the blacklist. Alternatively it shows an alert with You're allowed to see this! for users that are not from the countries in the blacklist.
Always reference the for complete response result