How to Restrict Shopify Checkout by Country

How to Restrict Shopify Checkout by Country

Arjun Vijayan7 September 2026

Selling internationally does not always mean accepting orders from every country.

A merchant may have shipping limitations, regulatory restrictions, distributor agreements, tax or operational constraints, or product-specific restrictions that make certain markets genuinely unsupported. In those cases, country-based checkout validation provides a final enforcement layer.


Why Storefront Restrictions Are Not Enough

A country can be excluded from your store's navigation, market settings or visible products — and still reach a product through:

  • Search engines — direct links from organic search results
  • Direct URLs — product links shared externally
  • Old links — links from previous marketing campaigns or external sites
  • Shared links — links forwarded between users
  • External traffic — referrals from marketplaces or comparison sites

Storefront restrictions reduce exposure. They do not prevent a determined buyer from reaching checkout.

A checkout rule addresses the purchase itself. It is the enforcement layer — not the discovery layer.


Define the Rule

Before configuring anything, write the rule clearly:

Option A — allowed countries:

"Checkout is only available to customers with a shipping address in [list of countries]."

Option B — blocked countries:

"Checkout is not available to customers with a shipping address in [list of countries]."

Then define what the customer should see if the rule fails. The message should be customer-friendly and actionable:

"We currently cannot accept orders for this destination. Please contact our team if you believe this is an error."


Shopify Validation Is the Enforcement Layer

Shopify's Cart and Checkout Validation Function API is designed to enforce purchase rules before checkout can complete. Shopify documents use cases including billing-address restrictions and other order validation scenarios.

This is distinct from shipping profiles, which determine available rates, or Shopify Markets, which controls storefront experience. Checkout validation runs at the point of purchase and blocks the order from completing if the condition is not met.

Checkout Guard is built around this validation capability.


Test the Boundary

Before activating the rule, test:

Scenario Expected result
Allowed country Checkout completes normally
Blocked country Validation message shown, checkout blocked
Shipping address in blocked country Blocked
Billing address in blocked country, shipping in allowed country Depends on rule configuration
Guest checkout Confirm behaviour
Logged-in customer Confirm behaviour
Accelerated checkout (where supported) Verify the rule fires at the correct point

Document what "billing address" vs "shipping address" means for your rule, as they can differ.


Avoid Over-Blocking

If the real operational issue is a specific carrier limitation — for example, a carrier that cannot service certain regions — blocking an entire country may be a broader restriction than the business actually needs.

Use the narrowest rule that solves the operational problem:

  • If only one carrier cannot reach the country, consider hiding that carrier via ShipSort rather than blocking checkout entirely.
  • If no carrier can reach the country at all, a checkout block is appropriate.
  • If the restriction is regulatory or contractual, checkout validation is the correct enforcement point.

Where Checkout Guard Fits

Checkout Guard is designed around merchant-defined checkout validation rules. Use it when the problem is:

"This order should not be allowed to proceed unless condition X is satisfied."

That is different from changing what the customer sees on the storefront, or from adjusting which shipping rates are available. It is a purchase-level enforcement rule — the last gate before payment.

The strongest checkout rule is the one that blocks the problematic order without creating unnecessary friction for legitimate customers.


Related Articles


Learn more about CheckoutGuard | Install CheckoutGuard on Shopify

Ready to grow with referrals?

See how Referbro can help your Shopify brand.