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
- Go to Location Blocker from your dashboard.
- Set Block type to Whitelist.
- In the country search field, find and select every country you want to allow (e.g., United States, Canada).
- Leave Page selection on All pages.
- 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:
- Go to VPN & Bot Blocker.
- Enable VPN & Proxy Blocking.
- Keep “Allow business VPNs” on.
- 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
| Setting | Value |
|---|---|
| Block type | Whitelist |
| Countries | United States, Canada |
| Page selection | All pages |
| VPN & Proxy Blocking | Enabled |
| Allow business VPNs | On |
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
- Block Traffic from Specific Countries — Use Blacklist mode to block a few countries instead.
- How to Whitelist Yourself — Avoid locking yourself out.
- Whitelist Mode Blocking Everyone — Fix common whitelist issues.