Allow Only Specific Countries

If you only sell to a few countries (e.g., USA and Canada) and want to block all other traffic, use Whitelist mode in the Location Blocker.

Setup

  1. Go to Location Blocker from your dashboard.
  2. Set Block type to Whitelist.
  3. In the country search field, find and select every country you want to allow (e.g., United States, Canada).
  4. Leave Page selection on All pages.
  5. Click Save.

All visitors from countries not in your whitelist will be blocked.

Important Considerations

Add your own country

If you are located in a country different from your target markets, add it to the whitelist. Otherwise, you will be blocked from viewing your own storefront.

Alternatively, whitelist your own IP address in the IP Blocker — whitelisted IPs bypass all blocking rules including country blocking.

Enable VPN blocking

Visitors from blocked countries can bypass your whitelist by using a VPN with a server in an allowed country. Enable VPN blocking to catch them:

  1. Go to VPN & Bot Blocker.
  2. Enable VPN & Proxy Blocking.
  3. Keep “Allow business VPNs” on.
  4. Click Save.

Unknown locations are allowed through

If a visitor’s country cannot be determined (e.g., due to an API issue), they are allowed through regardless of your whitelist settings. This is by design (fail-open) to avoid accidentally blocking legitimate customers.

Test in incognito

After saving, always test your storefront in an incognito/private browser window. Your regular browser may have cached pages from before blocking was enabled.

Example: USA and Canada Only

SettingValue
Block typeWhitelist
CountriesUnited States, Canada
Page selectionAll pages
VPN & Proxy BlockingEnabled
Allow business VPNsOn

With this setup, only visitors from the US and Canada can access your store. Visitors from all other countries are blocked, and visitors using VPNs to bypass the restriction are caught by VPN detection.

Next Steps