Country Blocker for Shopify
Decide who can reach your store
Block or allow visitors by country or IP address, and show everyone turned away a block page in your own words, colors and logo.
- Works on every Shopify plan
- Pro and Max include a 1-day trial
- No code to add
- Block country Shopify
- Block IP address
- Allowlist and blocklist
- Geo-blocking
- Custom block page
- Bot detection
- Block add to cart
- Blocked-country analytics
Overview
What is a country blocker for Shopify?
A country blocker turns visitors away from your storefront based on where they connect from, so you only deal with the markets you serve.
Country Blocker runs as a theme app embed. When a page loads it looks up the visitor’s country from their IP address, checks it against the list you saved, and replaces the page with your block page if the rule says to turn them away. You can also list IP addresses instead of countries.
The list works in two ways: Block mode turns away what you list, Whitelist mode lets in only what you list. Higher plans add reports on blocked countries and, on Max, controls for bots, cart, checkout and analytics pixels.
Block or allow
Turn away a few countries, or let in only the few you ship to.
Country or IP list
Country codes, or exact IP addresses and * wildcard ranges.
A block page that is yours
Your wording, colors and logo, so the message makes sense to the visitor.
Features
What Country Blocker checks and what it stops
Rules and block page on every plan, bot and checkout controls on Max.
Block or allow mode
Block mode turns away the countries or IPs you list. Allow mode (labeled Whitelist in the app) lets in only those and turns away everyone else.
Country rules
Type two-letter ISO country codes separated by commas, such as US,CA,GB,DE. Codes are saved in capitals.
IP address rules
List single addresses or ranges with * wildcards, such as 10.0.*.*. A store uses either a country list or an IP list at a time. CIDR ranges are not supported.
Custom block page
A title up to 100 characters, a message up to 500, three colors (text, page and box) and an uploaded logo in JPG, PNG, GIF or SVG.
Checked on every page load
A theme app embed looks up the visitor’s country from their IP address in the browser, then shows the block page when your rule says so. No code to add.
Blocked-country report
On Pro and up: blocked visits counted by country. Pro keeps 30 days of data.
Bot detection
On Max: on desktop, a visitor who does not move, scroll, click or type within 2 seconds is treated as a bot. Touch devices count as real people.
Add-to-cart and checkout blocking
On Max: blocked visitors and suspected bots cannot add to cart or start checkout, including the Buy it now buttons.
Analytics pixel blocking
On Max: events to Google Analytics, Meta, TikTok, Snapchat and Pinterest pixels, and Shopify analytics, are held back for suspected bots.
How it works
How to block a country on Shopify
Three steps in the app. Nothing needs adding to your theme code.
- Step 1 of 3
Switch on the app embed
The block page can only show once the embed is on.
- Install Country Blocker and choose a plan.
- Use the setup guide to open the theme editor.
- Turn on the Country Blocker app embed and save the theme.
- Step 2 of 3
Choose who is blocked
Pick the mode, then fill in the list.
- Choose Block, or Whitelist to allow only the list.
- Under Country wise, type country codes like US,CA,GB,DE.
- Or open IP wise and list addresses, using * for ranges.
- Step 3 of 3
Write the block page
Say what turned-away visitors will read.
- Set the title and message.
- Pick the text, page and box colors, and upload a logo.
- Save, then test from a blocked country or IP.
Who it’s for
Stores that turn visitors away by country
Regional shippers
You ship to a short list of countries and want orders from those only.
Restricted products
Items you may only sell in some places.
Stores hit by bad traffic
Repeat visits from one IP range, or from countries that never buy.
Stores that want a count
See which countries get turned away most, on Pro and Max.
Pricing
Three plans, from $1.99 a month
Billed in USD every 30 days, or save up to 38% with annual billing.
Standard
Country and IP blocking.
$1.99/month
- Country-based blocking
- IP address blocking
- Whitelist and blocklist modes
- Logo customization
- Text and color customization
- Real-time blocking
Pro
Adds blocked-country analytics.
$3.99/month
- Everything in Standard
- Blocked-country analytics
- 30-day data retention
- 1-day free trial
Max
Adds bot and checkout controls.
$5.99/month
- Everything in Pro
- Bot detection
- Add-to-cart blocking
- Abandoned checkout blocking
- Analytics pixel blocking
- 1-day free trial
Billed in USD every 30 days. Annual billing saves 38% on the first plan, 16% on Pro and 17% on Max. Pro and Max include a 1-day free trial.
FAQ
Blocking by country, answered
How the lookup works, what it cannot catch, and what each plan unlocks.
Key terms
Geo-blocking terms
Words from the settings screen and the block page.
- Geo-blocking
- Limiting access to a website based on where the visitor is connecting from.
- Blocklist
- A list of countries or IP addresses to turn away. Everyone else is let in. Block mode in the app.
- Allowlist
- A list of the only countries or IPs let in. Everyone else is turned away. Whitelist mode in the app.
- ISO country code
- The two-letter code for a country, such as US, DE or JP, used in the Country List field.
- IP geolocation
- Estimating a visitor’s country from their IP address, which can be wrong for VPNs and some mobile networks.
- Wildcard IP rule
- An address with * in place of a number, so 10.0.*.* matches every address starting 10.0.
- App embed
- A theme-wide switch in the theme editor that lets an app load its script on every page.
- Block page
- The page a turned-away visitor sees instead of your store, with your title, message and logo.
More apps
More apps from Devoptly
DevOptly Store Protector
Block right-click, copying and image saving, and restrict chosen countries.
OmniGuard: Content Protector
Lock pages, products or collections behind a password, login or schedule.
Age Checker
Age verification made simple.
Ready to add Country Blocker to your store?
Install it in a few minutes, or talk to the team that builds it and we will set it up with you.