Deciding between a country redirect vs country block on Shopify comes down to a simple operational question: do you have somewhere legitimate for that international visitor to buy, or do you need to keep them out of your store and checkout altogether?
Many merchants start by toggling settings in Shopify Markets or editing shipping profiles, only to discover that visitors from unsupported regions are still browsing their catalog, triggering ad pixels, or purchasing digital items and gift cards that skip physical shipping rates. Other brands operate multiple regional Shopify stores—such as separate US, UK, European, or Australian storefronts—and mistakenly put up a hard block screen when they should be routing traffic to their sister domain.
Understanding how native Shopify Markets redirect vs hard country block controls work, how storefront regional store redirection differs from server-side checkout enforcement, and how to combine them in LabX Fraud Filter helps you route legitimate buyers while stopping restricted checkouts. For a full overview of visitor filtering across IP, ASN, and bot signals, see our Shopify traffic and bot blocking guide.
What is the difference between a country redirect and a hard country block on Shopify?
On Shopify, controlling international traffic involves four distinct mechanisms that operate at different points in the visitor journey:
- Shopify Markets automatic redirection: Built into Shopify Admin (
Online Store > Preferences > Automatic redirection), this feature detects a visitor’s IP geolocation and switches them to the matching regional URL subfolder (yourstore.com/fr-fr), subdomain (fr.yourstore.com), or country-code domain (yourstore.fr) configured inside Settings > Markets on that same Shopify store. It localizes currency and language, but it does not block storefront access or redirect visitors to an external expansion store or distributor site. - Storefront country redirect rules (
Fraud Guardapp embed): In LabX Fraud Filter, a Redirect rule evaluates the visitor’s country or state/province (Region) in the browser and immediately replaces the page URL (window.location.replace) with any External URL you define for that specific rule. This lets you send visitors to a separate Shopify expansion store, a country-specific partner domain, or a regional landing page. - Storefront hard country block (
Fraud Guardapp embed): A Block rule replaces the entire storefront DOM in the visitor’s browser with a customizable access-denied screen (using one of six built-in templates) so casual visitors in restricted regions cannot browse product pages, view pricing, or add items to a cart. - Server-side checkout country block (
Checkout Protection): Powered by a native Shopify Cart and Checkout Validation Function, this rule runs on Shopify’s backend servers whenever a buyer updates their cart or submits checkout information. It validates the shippingCountryandZipcode entered at checkout and blocks order completion—even if the buyer used a VPN on the storefront or disabled JavaScript.
| Feature or Capability | Shopify Markets Auto-Redirect | Storefront Country Redirect (Fraud Guard) | Storefront Hard Country Block (Fraud Guard) | Checkout Country Block (Checkout Protection) |
|---|---|---|---|---|
| Primary goal | Localize currency/language within one Shopify store | Route visitors to a separate regional store or partner URL | Stop visitors from viewing pages, prices, and catalog | Stop orders from being placed to restricted destinations |
| Where it executes | Shopify storefront routing layer | Client-side in the visitor’s browser | Client-side in the visitor’s browser | Server-side on Shopify’s checkout infrastructure |
| Can route to an external domain or sister Shopify store? | No (only domains/subfolders connected to the same store) | Yes (each rule has its own External URL destination) | Optional (if a global block-page redirect URL is set) | No (returns a custom checkout validation error message) |
| Stops catalog browsing and casual price viewing? | No | Yes (sends browser immediately to the target URL) | Yes (displays custom branded block screen) | No (runs during cart and checkout progression) |
| Blocks digital products and gift cards? | No (unless Market is inactive and billing/shipping checked) | Only for normal browser sessions | Only for normal browser sessions | Yes (validates checkout country code server-side) |
| Can a technical user bypass it? | Yes (via country selector or URL parameters) | Yes (disabling JavaScript or calling APIs skips it) | Yes (disabling JavaScript or curl skips it) | No — runs on Shopify’s servers and cannot be bypassed |
When should you use regional store redirection instead of blocking visitors?
Showing an “Access Denied” screen to a paying customer who simply landed on the wrong regional domain costs you revenue. You should use regional store redirection whenever a visitor is located in a market that your brand—or an authorized partner—actively serves on another URL:
- Multi-store Shopify expansion architectures: Many growing brands run separate Shopify stores for North America (
brand.com), the United Kingdom (brand.co.uk), the European Union (eu.brand.com), and Australia (brand.com.au) to manage separate 3PL warehouse inventories, local tax registrations, or regional ERP integrations. Because Shopify Markets only links domains belonging to a single Shopify admin, you need a storefront Redirect rule onbrand.comto route UK and EU visitors to your dedicated UK or EU expansion store URL. - Authorized international distributors and retail partners: If you manufacture goods in the United States and grant an exclusive distribution license to a partner in Japan or South Korea, blocking Japanese or Korean shoppers leaves money on the table. Instead, create a Location redirect rule for Japan (
JP) that sends visitors directly to your Japanese distributor’s website, and a separate redirect rule for South Korea (KR) pointing to your Korean partner’s URL. - State or province routing (
Regionredirects): If certain states or provinces require a specialized catalog—for example, routing California or Ontario visitors to a dedicated wholesale portal or regional compliance page—you can use a Region rule in Redirect mode rather than redirecting the entire country.
What should European merchants know about EU geo-blocking rules?
(Note: The following is general operational information, not legal advice.)
If you sell into the European Union, be careful how you configure automatic country redirects or blocks between EU member states. Under Regulation (EU) 2018/302 (the EU Geo-Blocking Regulation), traders operating within the EU single market are generally prohibited from blocking access to an online interface—or automatically redirecting customers to a different country version of a website without the customer’s explicit prior consent—based on nationality or place of residence within the EU.
Because of this regulation, Shopify Markets disables automatic hard redirection between EU country domains by default and relies on country selectors or banners instead. Similarly, if your store sells to EU consumers, avoid using automatic storefront rules to lock EU shoppers out of another EU storefront, and make sure your EU store provides the mandatory electronic withdrawal workflow covered in our EU withdrawal button guide.
When do you need a hard country block on Shopify?
Unlike regional redirection—which welcomes the visitor on another URL—a hard country block is designed for territories where you cannot or will not conduct business under any circumstances:
- Trade sanctions and embargoed jurisdictions: Merchants subject to US OFAC sanctions, UK sanctions, or EU export controls must prevent transactions involving comprehensively sanctioned or embargoed territories. Relying solely on physical shipping zones is insufficient if your store sells digital downloads, software licenses, online courses, warranties, or gift cards that do not require a shipping rate. Enforcing a hard block requires both a storefront
Locationblock rule and a server-sideCheckout Protectionrule onCountry. (Always consult qualified legal counsel regarding your specific sanctions compliance obligations.) - Strict territorial licensing with no sister store: If you hold a license to sell a brand’s merchandise exclusively in the United States and Canada, and your licensing agreement prohibits marketing or displaying those products outside North America, a hard country block prevents out-of-territory browsing while server-side checkout validation stops international checkout attempts.
- High-risk bot, scraper, and card-testing regions: If your store only fulfills domestic orders and you see waves of automated traffic, catalog scraping, or card testing attacks on Shopify originating from regions you never ship to, a hard country block cuts off that storefront noise immediately.
Why can browser redirects and storefront blocks be bypassed without checkout validation?
Whether you choose a country redirect or a country block on the storefront, it is critical to understand the technical boundary of Shopify’s architecture. We explain this in detail in our breakdown of storefront blocking vs checkout blocking on Shopify, and we state it plainly inside our app:
- Storefront rules run in the visitor’s browser: When a visitor requests a page, Shopify’s CDN delivers the storefront HTML before any app script runs. LabX Fraud Filter embeds your rule configuration directly inside a Shopify metaobject (
#fg-rules) so no extra request is needed to read your rules, and performs one GeoIP lookup per browsing session via the Shopify App Proxy (cached in browsersessionStoragefor 30 minutes). Once the country is returned, the browser script either triggerswindow.location.replace()to redirect the visitor or renders your block screen. - Determined users can skip browser scripts: Because evaluation happens client-side, a visitor who disables JavaScript in their browser, fetches product pages with
curl, or sends direct HTTP requests to Shopify’s/cart/add.jsendpoint or a checkout permalink will bypass any storefront redirect or block screen. - Consumer VPNs vs datacenter blocking: IP geolocation maps a visitor’s network address to a country. If a buyer uses a consumer privacy VPN with an exit node in your allowed country, their browser IP will appear local. Note that enabling Block datacenter traffic in Settings > Mitigator blocks cloud hosting providers and server farms (where automated scrapers and checkout bots run)—it is not consumer VPN blocking, because real shoppers on consumer VPNs often route through residential network ranges. Similarly, storefront Content protection (blocking right-click, keyboard copy shortcuts, and text selection) is a casual deterrent against manual copying, not DRM, and cannot block OS-level screenshots or browser DevTools.
- Server-side Checkout Protection cannot be bypassed: To enforce a true hard country block on orders—or to stop a redirected visitor from jumping back via a direct checkout link—you must pair your storefront rule with Checkout Protection. Because Checkout Protection executes as a Shopify Cart and Checkout Validation Function on Shopify’s own servers, it inspects the actual shipping
CountryandZipcode typed into the checkout form and rejects matching checkouts server-side before payment is processed.
How does rule precedence work when you combine country redirects and country blocks?
Many international merchants need both actions at the same time: for example, redirecting European visitors to an EU store, allowing North American shoppers to browse normally, and displaying a hard block screen to visitors from specific high-risk countries.
In LabX Fraud Filter, the storefront evaluation engine checks rules in a strict, deterministic order of precedence:
- Admin bypass token (
?fg_bypass=): If you opened your store once using your rotatable Admin access link from Settings > General settings, your browser skips every redirect and block rule so you can test freely. - Allowed search and SEO crawlers: When “Always allow search engines” is enabled, the built-in allowlist of 25 crawlers is waved through before any geo rule runs.
- Explicit Allow (whitelist) rules: Visitors matching an allow rule pass immediately.
- Automated bot, Tor, and datacenter checks: If enabled in Settings > Mitigator, known bot user-agents, weekly refreshed Tor exit nodes, datacenter hosting ASNs, and opt-in suspicious crawler checks (Headless hints and Unknown user-agent) are blocked next.
Block all except…country mode: When yourLocationblock mode is set to Block all except…, any visitor whose detected country is not on your allowed list is blocked at this step.- Redirect rules: Next, the engine evaluates your active Redirect rules (
Location,Region,IP Address,ISP,User Agent,Referrer URL,Page, orProduct) and redirects the visitor to the specific External URL configured on the matching rule. - Specific Block rules: Finally, the engine checks your Block specific countries rules and other block rules, rendering your chosen block template (Strong, Simple, Pixel, Gradient, Barrier, or Light purple).
- Fail-open default: Any unmatched visitor—or any visitor whose GeoIP lookup times out or cannot be determined—is allowed through so a network hiccup never locks out real customers.
Important configuration tip: Because Block all except… mode is evaluated at Step 5 (before Redirect rules at Step 6), turning on Block all except United States would block a UK visitor before a UK Redirect rule can fire. Whenever you want to combine country redirects with country blocks, set your
Locationblock mode to Block specific countries, create Redirect rules for the countries you want to route to regional stores, and use Block rules (or continent presets likegroup:AS,group:AF, etc.) for the countries you want to block.
Here is how to configure the most common international store setups across both layers (for step-by-step screenshots of every rule form, see our guide on how to block countries on Shopify and the Blocking Rules documentation):
| Store Architecture | Storefront Blocking Rules Setup | Server-Side Checkout Protection Setup |
|---|---|---|
| US store + separate EU & UK expansion stores | Redirect tab → Location → Select group:EU → External URL: https://eu.yourstore.com; second Redirect rule for GB → https://uk.yourstore.com | Add Country rule blocking group:EU and GB on the US checkout with inline error: “Please complete your order on our EU/UK store.” |
| Domestic-only store (no international sister stores) | Block tab → Location → Block all except… → Select your domestic country (e.g., United States) | Add Country rule for restricted continents + Zip rule for unserviceable offshore/remote postal codes |
| Global store with exclusive regional distributors (e.g., AU & JP) | Redirect tab → Location → Rule 1: AU → Australian partner URL; Rule 2: JP → Japanese partner URL | Add Country rule blocking AU and JP on your main checkout so buyers use the local distributor |
| Global store blocking sanctioned & high-risk countries | Block tab → Location → Block specific countries → Select restricted countries + enable Block datacenter traffic & Block Tor traffic | Add Country rule matching those exact countries + Email rule blocking disposable domains (@mailinator.com, @tempmail.com, etc.) |
How do you protect SEO when redirecting or geoblocking countries on Shopify?
The biggest mistake merchants make with custom geolocation redirects is redirecting search engine crawlers. As Google Search Central documents, Googlebot crawls primarily from IP addresses in the United States, along with distributed crawlers globally. If a European or Australian store redirects all US IP addresses to a .com homepage—or blocks US IP addresses outright—without exempting crawlers, Googlebot can no longer crawl the regional storefront’s product URLs.
LabX Fraud Filter protects your organic search visibility and Core Web Vitals automatically when you follow three best practices:
- Leave “Always allow search engines” enabled: Because the built-in allowlist of 25 search, social, AI, and SEO crawlers (including Googlebot, Bingbot, Applebot, DuckDuckBot, Facebook/Meta, Pinterest, AhrefsBot, and SemrushBot) sits above both
Block all except…andRedirectrules in the evaluation order, search crawlers inspect your pages in place without ever being redirected or blocked. Read our guide on whitelisting Googlebot, Meta, and SEO crawlers on Shopify for more detail. - Keep
Loading page effectOff in Blocking template settings: In Settings > Blocking template, leaving Loading page effect set to Off (the default) ensures your storefront HTML paints immediately while the first-page-view GeoIP check completes in the background, keeping your Largest Contentful Paint (LCP) fast. - Monitor redirected vs blocked sessions in Visitor Analytics: Open the Analytics and Visitor logs in LabX Fraud Filter to track allowed, blocked, and redirected traffic by day, inspect top visitor countries, and verify the exact rule (
redirect:countryvsblock:country) that matched each session.
Frequently asked questions
What is the difference between Shopify Markets redirection and a storefront country redirect rule?
Shopify Markets redirection routes visitors between regional subfolders, subdomains, or domains attached to the same Shopify store to localize currency and language. A storefront country redirect rule in LabX Fraud Filter can send visitors from any selected country, state, or continent group to any external URL—such as a separate Shopify expansion store or an authorized local distributor website.
Can visitors bypass a browser-based country redirect or storefront country block?
Yes. Because Shopify serves storefront HTML from its CDN before app scripts run, both storefront redirects and storefront block pages execute in the visitor browser. A user who disables JavaScript, uses curl, or navigates directly to a cart permalink can bypass browser scripts. To stop orders from restricted countries reliably, pair storefront rules with server-side Checkout Protection.
In what order are country redirect rules and country block rules evaluated?
In LabX Fraud Filter, search engine crawlers and explicit allow rules run first, followed by bot, Tor, and datacenter checks, then "Block all except" country mode, then Redirect rules, and finally specific Block rules. If you want to redirect certain countries while blocking others, use "Block specific countries" mode alongside your Redirect rules.
Will redirecting or blocking foreign countries hurt my Google search rankings?
Not when "Always allow search engines" remains enabled. LabX Fraud Filter checks a built-in allowlist of 25 search, social, AI, and SEO crawlers before evaluating any country redirect or country block rule, ensuring Googlebot and Bingbot can crawl your store from any IP location.
Sources
Part of our guide: Traffic & bot blocking →