How to block countries, IP addresses, VPNs and customers on Shopify
You cannot block countries on Shopify with a setting: Shopify has none that keeps visitors from a country, an IP address or a VPN out of your store. Shopify's own tools work on orders: you can see an order's IP address, get orders from a proxy flagged, and build block lists in Shopify Flow. To stop the visit before the page opens, you need an app. It helps against bots and fraud from certain places, but it also costs real customers when the rule is too wide.
What Shopify can do itself
- See the IP address of an order. It is in the Fraud analysis section of the order page. Shopify suggests checking whether the address is far from where the customer says they are, whether it belongs to a web hosting company, and whether it is a proxy.
- Proxy detection flags customers who buy through a proxy, in stores with Shopify Payments.
- Shopify Flow can build rules, allow lists and block lists for which orders your store accepts (Basic, Grow, Advanced and Plus).
- Fraud Control can block certain emails, IP addresses and payment details, with Shopify Payments.
- Markets control what customers in different countries see, such as currency, language, prices and which products they can buy.
What they have in common is that they work on the order or the checkout. The visit has already happened, and it counts in your analytics and your ad pixels.
How to block a customer on Shopify
To stop a certain customer who keeps ordering, you have three ways:
- Cancel the order before you ship it, and refund the payment.
- Build a block list in Shopify Flow that holds or cancels orders with the customer's email or address.
- Refuse the customer at checkout with an app, so the order is never made. Storebouncer does this on the Scale plan, see below.
When does it make sense to block countries and IP addresses?
- You only sell to some countries, and the traffic from the rest is bots and spam that spoil your numbers.
- Attacks come from the same networks, such as a wave of fake orders or carts from one IP address or one hosting company.
- Bots come through VPNs, proxies, Tor or servers. Real customers rarely shop from a data centre.
What it costs
- Real customers abroad: people on holiday, expats and companies buying for another country.
- VPN users who just want to protect their privacy. Block every VPN and you block them too.
- The location is a guess. Where an IP address is comes from a database, and it is not always right.
- Search engines, if the rule hits them too. Then Google cannot see your store.
So start narrow: one country or one network you can see in your visits, rather than whole continents.
Where Storebouncer fits
Storebouncer is a Shopify app that checks every visit at the door, before your analytics and ad pixels start. This is what it can do with countries, IP addresses and VPNs:
- Rules by country, region, province or city, IP address or range, network (ASN), internet provider, referrer, page and collection. Each rule can block, always let in, or send the visit on to another address. A country rule can also be "every country except".
- VPNs, proxies, Tor and servers are recognized from public lists: DB-IP Lite, X4BNet's VPN lists, the Tor Project's list of exit nodes and FireHOL level 1. iCloud Private Relay does not count as a VPN, and the visit is placed in the country Apple gives.
- Google and Bing always get in. Verified search engines you have switched on are not stopped by your rules.
- Let yourself in first. An "always let in" rule goes before the rest, so your own office or your own VPN is not blocked.
- Refuse customers at checkout by email, phone number, name, address, country and postcode (Scale).
It stops only the visits its lists and your rules hit, not all bots. Rules by country, IP and network and blocking of VPNs, proxies and Tor are in Pro at $9.99 a month. Checkout rules are in Scale at $29.99. Both have a 7-day free trial. See the pricing.
See Storebouncer on the Shopify App StoreRead also about bot traffic on Shopify and card testing on Shopify.
Sources
- Shopify Help Center: Preventing fraud, read 30 November 2026.
- Shopify Help Center: Markets, read 30 November 2026.
Last updated 30 November 2026. Written by Storebouncer, OkayScale ApS.