Skip to content
Shopify country blocker app

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.

  1. Block or allow

    Turn away a few countries, or let in only the few you ship to.

  2. Country or IP list

    Country codes, or exact IP addresses and * wildcard ranges.

  3. 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.

  1. Step 1 of 3

    Switch on the app embed

    The block page can only show once the embed is on.

    1. Install Country Blocker and choose a plan.
    2. Use the setup guide to open the theme editor.
    3. Turn on the Country Blocker app embed and save the theme.
  2. Step 2 of 3

    Choose who is blocked

    Pick the mode, then fill in the list.

    1. Choose Block, or Whitelist to allow only the list.
    2. Under Country wise, type country codes like US,CA,GB,DE.
    3. Or open IP wise and list addresses, using * for ranges.
  3. Step 3 of 3

    Write the block page

    Say what turned-away visitors will read.

    1. Set the title and message.
    2. Pick the text, page and box colors, and upload a logo.
    3. 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
Best for most stores

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.

Install Country Blocker, switch on its app embed in the theme editor, choose Block mode, open Country wise and type the two-letter codes of the countries to block, such as FR,DE. Save, and visitors from those countries see your block page.

Open IP wise in the app, choose Block mode and list the addresses separated by commas. Use * for a range, for example 203.0.*.*. CIDR notation such as /24 is not supported. A store uses either a country list or an IP list, not both at once.

In Block mode, the countries or IPs on your list are turned away and everyone else gets in. In Whitelist mode (an allowlist), only the ones on your list get in and everyone else sees the block page.

The app embed asks a public IP lookup service from the visitor’s browser (ipinfo.io first, then ipwho.is and ip-api.com) and compares the answer with your list. If every service fails, the visitor is let through.

Yes, in some cases. The check runs in the browser, so it works as a storefront gate and not as a server firewall. A visitor on a VPN shows up as the VPN’s country, and the app has no VPN detection. Use it to stop ordinary visits and orders, not as a security boundary.

The app has no crawler exemption. A crawler that runs your pages’ JavaScript from a blocked country sees the block page, and Googlebot crawls mostly from the United States, so think twice before blocking a country your crawlers use.

No. Turned-away visitors see the block page you write, with a title, a message and a logo. The app does not redirect, and it cannot leave some pages open or block only a region inside a country.

Bot detection, add-to-cart blocking, checkout blocking and analytics pixel blocking. Bot detection decides on desktop from whether the visitor moves, scrolls, clicks or types within 2 seconds, and treats touch devices as real people.

Yes. It runs as a theme app embed and does not need Shopify Plus. It does need an active app plan, though: after install you choose a plan before the settings open.

The first plan is $1.99 a month, Pro is $3.99 and Max is $5.99, billed in USD every 30 days. Annual billing saves 38%, 16% and 17%. Pro and Max have a 1-day free trial.

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

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.