This is an info Alert.
xpay
  • Product
    • Become Agent-Ready
      • Merchants
        Agentic Commerce — list your store across ChatGPT, Gemini, Claude & Perplexity
      • Publishers
        Monetize your content when AI agents read, cite, or train on it
      • SaaS Companies
        Treat AI agents as first-class customers with agent-priced checkout
    • Monetize
      • Monetize MCP Server
        Charge per call on any MCP server in 2 minutes
      • Monetize AI Agents
        Turn n8n, Zapier, Activepieces workflows into revenue
  • Resources
    • xpay Ecosystem
      • xpay✦ Tools
        1,000+ pay-per-use tools for your AI agents
      • Agent-Ready SaaS Index
        25,481 SaaS scored on agent-buyability
      • SaaS Pricing Database
        Pricing pages indexed across 1,000+ categories
      • Shopify Apps Directory
        Every Shopify app, with its full review history
      • WooCommerce Plugins Directory
        Every WooCommerce plugin, scored on how well it is maintained
      • GitHub
        Open source repositories
    • Agent Building
      • Agent Frameworks
        AI frameworks for building multi-agent systems
      • x402 Integration
        AI frameworks with x402 payment integration
      • Networks
        Blockchain networks supporting x402
    • Company
      • About xpay✦
        Our mission, products, and protocols
      • Blog
        Latest insights and updates
      • Docs
        Complete xpay documentation
  • Pricing
  • Blog
  • Docs
Get Started
  1. xpay✦ Commerce

  2. Directory

  3. WooCommerce plugins

  4. Country Based Restrictions for WooCommerce

Country Based Restrictions for WooCommerce

Restrict WooCommerce products by country using geolocation. Choose exactly which countries can see and buy each product — no code required.

5K+ active installs
4.5
(52 ratings)
Free on WordPress.org
View on WordPress.orgSupport forum
Will this break my store?

What the WordPress.org registry says about keeping Country Based Restrictions for WooCommerce running.

WordPress compatibility
Tested to 7.1.3
Tested against the WordPress branch in use today.
Last updated
9 days ago
At least 11.1 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.
Requires PHP
7.0
Your host must be running at least this version.
Requires WordPress
5.3
Requires other plugins
woocommerce
These must be installed and active first.
Contributors
3

5K+ active installsWordPress.org reports installs in bands, not exact counts.
Maintenance & trust

Scored on how Country Based Restrictions for WooCommerce is looked after — not on how many stores run it.

96

out of 100
Well maintainedSome ratings or support history.

Maintenance
35 / 35
Updated 2 days ago.
WordPress compatibility
20 / 20
Tested to WP 7.1.3 (current).
Support responsiveness
Not enough data
Only 1 support thread(s) — not enough to judge.
Merchant satisfaction
12 / 15
4.5/5 across 52 rating(s).
Listing transparency
10 / 10
Provides: screenshots, description, homepage
1 of 5 measures had too little evidence to score. They are left out of the total rather than counted as zero — otherwise a plugin would be marked down for being small rather than for being poorly kept.Measured 2026-10-07 from the WordPress.org plugin registry.
Ratings

4.5

52 ratings
5★45
4★0
3★1
2★1
1★5
Every rating WordPress.org holds for this plugin, not a sample. Written reviews live in the plugin's WordPress.org reviews forum.

Country Based Restrictions for WooCommerce lets you control exactly which products are visible and purchasable based on your customer’s country — using WooCommerce’s built-in geolocation engine (MaxMind GeoIP2) for 99.5% accuracy.

Whether you’re selling region-specific products, dealing with legal compliance restrictions, or managing international distribution agreements, CBR gives you precise control over your catalog by country — without any coding.

HPOS Compatible · 5,000+ Active Stores · Free & Open Source

What You Can Do

  • Restrict products per country — For any product, choose a list of countries to include (sell only to) or exclude (block from). Set it per product in seconds.
  • Three visibility modes — Choose how restricted products behave for blocked customers:
    • Hide completely from shop, search, and category pages
    • Hide from shop and search but allow direct URL access
    • Keep visible but non-purchasable (show with a custom message instead of Add to Cart)
  • Include or exclude rules — For each product, choose whether the country list means “sell only to these countries” or “do not sell to these countries”.
  • Works with WooCommerce Geolocation — Uses the shipping country the customer enters, falling back to WooCommerce Geolocation (MaxMind GeoIP2) when no shipping country is set yet.
  • Supports product variations — Apply country restrictions to individual variations within a variable product, not just the whole product.
  • HPOS Compatible — Fully compatible with WooCommerce High-Performance Order Storage (custom order tables).
  • Translation ready — Fully translatable via standard WordPress/WooCommerce translation tools.

How It Works

  1. Install and activate the plugin.
  2. Go to WooCommerce > Country Restrictions to configure the default visibility settings.
  3. Open any product and set the country restriction rule — choose include or exclude, and select the countries.
  4. Customers visiting from a restricted country will see the product according to your chosen visibility mode.

Free vs PRO — What’s the Difference?

CBR Free gives you per-product country restrictions. CBR PRO adds bulk catalog rules, payment gateway control, checkout enforcement, an admin debug mode for testing rules, and restriction analytics showing which countries are hitting your rules.

CBR Free includes:

  • Per-product country restriction rules (include or exclude)
  • Three visibility modes: hide completely, hide from shop/search, or show but block purchase
  • Variation-level restrictions
  • WooCommerce Geolocation detection (MaxMind GeoIP2)
  • HPOS compatible

CBR PRO adds:

  • Bulk restrictions by category, tag, attribute, or shipping class — Apply rules to entire product groups at once instead of editing each product individually.
  • Global restriction rules — Apply one rule across all products sitewide.
  • Bulk CSV import — Import country rules for hundreds of products at once.
  • Disable payment gateways by country — Hide or disable specific payment methods (PayPal, Stripe, etc.) for customers from restricted countries.
  • Hide product prices by country — Show the product but hide the price for restricted countries.
  • Country detection widget — Let customers manually change their detected country from the storefront.
  • Custom restriction messages — Set a custom message per product shown to restricted customers instead of the Add to Cart button.
  • Redirect restricted customers — Redirect blocked visitors to a custom page instead of showing an error.
  • Checkout restriction — Block restricted products from being ordered at checkout, not just hidden from the catalog.
  • Restriction analytics — See which countries and which products hit your rules most often, ranked by volume, with restriction trends over time.
  • Demand signal tracking — Blocked attempts by country tell you where there is unmet demand for products you do not yet sell there.
  • Admin debug mode — Preview your store as a visitor from any country and test your rules before they go live.
  • Block checkout support — Works with the WooCommerce Cart and Checkout blocks.
  • Remove bulk rules — Clear single-product rules in bulk via the product list bulk actions.
  • Priority support — Faster, dedicated assistance from the Zorem team.

👉 Get CBR PRO

Who Uses Country Based Restrictions

Any WooCommerce store that cannot, or does not want to, sell everything everywhere:

  • Alcohol, wine, beer and spirits retailers — sell only into the markets you are licensed for.
  • Tobacco and vape stores — country rules differ sharply and change often.
  • CBD, supplement and wellness stores — product legality varies country by country.
  • Pharmacy and medical supply stores — restrict products that cannot be shipped across certain borders.
  • Brands with distribution agreements — honour territory exclusivity with a distributor or licensee.
  • Licensed and franchised products — sell merchandise only in the regions your licence covers.
  • Digital goods with regional licensing — software, media and courses sold per territory.
  • Knives, tools and age-restricted goods — keep restricted items out of countries that prohibit them.
  • Dropshippers — hide products your supplier will not ship to a given country.
  • Wholesale and B2B stores — show a different catalog per region.
  • Stores cutting fraud and returns — stop taking orders from countries that cost you more than they earn.

CBR is a merchandising and storefront control tool. It restricts what a visitor from a detected country can see and buy — it is not a legal or sanctions compliance product, so take your own advice on what you are required to block.

Compatible With

CBR is tested and compatible with:

  • Multilingual plugins — WPML, Polylang, Weglot
  • Page builders — Elementor, Divi, WPBakery (Visual Composer)
  • Wholesale plugins — Wholesale for WooCommerce
  • Search plugins — Advanced Search for WooCommerce
  • Subscriptions — WooCommerce Subscriptions (variation restriction supported)
  • Multi-currency — Works alongside currency switcher plugins

⚠️ Important note for caching: Caching plugins (WP Rocket, W3 Total Cache, SiteGround Optimizer) and CDNs can serve cached pages that bypass geolocation detection. Ensure your caching is configured to exclude geolocation cookies and country detection from the cache. See the documentation for setup guidance.

Documentation & Support

  • 📖 Full documentation
  • 💬 WordPress.org support forum

More Plugins by Zorem

  • Advanced Shipment Tracking for WooCommerce — The #1 WooCommerce shipment tracking plugin. Trusted by 80,000+ stores.
  • SMS for WooCommerce — Automated SMS order and shipping notifications via Twilio, WhatsApp, and 18 other providers.
  • Customer Email Verification PRO — Block fake accounts and spam orders with OTP-based email verification.
  • Local Pickup PRO — Advanced local pickup with multiple locations, appointment scheduling, and ready-for-pickup notifications.
  • Zorem Returns — Self-service returns, exchanges, and store credit management for WooCommerce.

Explore the full catalog at zorem.com

How does the plugin detect a customer’s country?

CBR uses WooCommerce’s built-in country detection. It checks the shipping country the customer enters during checkout first. If no shipping country has been set yet, it falls back to WooCommerce Geolocation (MaxMind GeoIP2), which has 99.5% country-level accuracy.

Can I restrict a product so only customers from specific countries can buy it?

Yes. On any product page, set the restriction rule to “Include” and select the countries that are allowed to purchase. Customers from all other countries will see the product according to your chosen visibility mode (hidden, or visible but not purchasable).

Can I block specific countries from buying a product?

Yes. Set the restriction rule to “Exclude” and select the countries to block. Customers from those countries will be restricted; everyone else can purchase normally.

What happens to restricted customers — do they see the product?

You choose. Three visibility modes are available: hide the product completely from shop and search; hide from shop and search but allow direct URL access; or keep the product visible but replace the Add to Cart button with a custom message.

Can I restrict individual product variations by country?

Yes. CBR supports variation-level restrictions, so you can allow some variations to be purchased in certain countries while restricting others within the same variable product.

Can I restrict products in bulk by category or tag?

Bulk restrictions by category, tag, attribute, shipping class, or globally (all products) are available in CBR PRO.

Can I restrict payment gateways by country?

Disabling specific payment gateways for customers from restricted countries is available in CBR PRO.

Can I hide product prices for restricted countries?

Hiding the product price for restricted countries is available in CBR PRO.

Does CBR work with WPML or Polylang multilingual stores?

Yes. CBR is compatible with WPML and Polylang. Country rules set on a product apply across all language versions of that product.

Will caching plugins interfere with country detection?

Yes — this is a common issue. If your caching plugin serves a cached page, the geolocation check may not run for that visitor. You need to configure your caching plugin to exclude pages with geolocation cookies from the cache. See the documentation for specific instructions per caching plugin.

Does CBR work with HPOS (High-Performance Order Storage)?

Yes. CBR is fully compatible with WooCommerce High-Performance Order Storage (custom order tables).

Does CBR work with WooCommerce Subscriptions?

Yes. CBR supports WooCommerce Subscriptions, including variation-level restrictions on subscription products.

Does CBR use the billing country or the shipping country?

CBR checks the shipping country the customer has entered first, and falls back to WooCommerce Geolocation (MaxMind GeoIP2) when no shipping country has been set yet. Showing or hiding payment gateways by billing or shipping country is available in CBR PRO.

Can I stop a restricted product from actually being ordered at checkout?

Checkout enforcement, which blocks restricted products from being ordered rather than only hiding them in the catalog, is available in CBR PRO. The free version controls catalog visibility and the Add to Cart button.

Can I see which countries are hitting my restrictions?

Restriction analytics are available in CBR PRO: blocked attempts ranked by country and product, plus restriction trends over time. Those blocked attempts double as a demand signal, showing where customers want products you are not selling yet.

How can I test my country rules without using a VPN?

Admin debug mode, which lets you preview your store as a visitor from any country, is available in CBR PRO. In the free version, test by setting a shipping country on the cart or checkout page.

Does CBR work with the WooCommerce Cart and Checkout blocks?

Block checkout support is available in CBR PRO. The free version works with the classic shortcode cart and checkout.

Categories
Checkout fields & address
Plugin details
Version3.8.1
Last updated2026-10-05 9:38am GMT
Added2018-10-04
Requires WordPress5.3
Tested up to7.1.3
Requires PHP7.0

Tags on WordPress.org
Block countries
country restrictions
geo restriction
geolocation
Product restriction
Alternatives
Other plugins in the same categories.
Checkout Field Editor (Checkout Manager) for WooCommerce
400K+ installs
4.9(1,056)
Price Based on Country for WooCommerce
20K+ installs
4.8(262)
Calculadora de Frete e Campos Checkout para o Brasil
5K+ installs
4.9(45)
Admin Columns
100K+ installs
4.9(1,651)
Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager
80K+ installs
4.7(296)
Kikote – Location Picker at Checkout & Google Address AutoFill Plugin for WooCommerce
1K+ installs
5.0(65)
xpay

The agent-readiness stack for the AI shopping era — helping merchants, publishers and SaaS companies get discovered, cited and transacted with by ChatGPT, Perplexity, Claude, Gemini and the custom shopping agents underneath them.

CompanyAgentically Inc. (d/b/a xpay✦)1875 Mission St, Ste 103San Francisco, CA 94103, United Stateslegal@xpay.sh · privacy@xpay.sh
or ask your AI app
Company
About xpayAgency PartnersGitHubDiscordllms.txt
DevelopersDocumentationAPI ReferenceSDKs & LibrariesQuickstart GuideOpenAPI Spec
Stay Updated
Occasional product updates and agent-readiness playbooks from xpay (Agentically Inc.) — typically a couple of emails a month. Double opt-in: we email you a link to confirm before sending anything, and every email has one-click unsubscribe.
Social
  • For Publishers
    • News
    • Finance
    • Dev / Tech
    • Travel
    • View all verticals
  • Agent-Ready Index
    • SaaS Pricing Database
    • Agent-Ready SaaS Index
    • Verified band
    • AI & ML
    • Sales & CRM
  • Products
    • Pricing Widget
    • Monetize MCP Server
    • Paywall
    • Smart Proxy
    • Monetize AI Agents
    • xpay x402 Facilitator
  • Agentic Economy
    • Timeline
    • Resources
    • Manifesto
    • Stack
  • Agentic Commerce
    • Get listed
    • ChatGPT Ads
    • How ChatGPT Ads work
    • ChatGPT Ads · Apparel
    • ChatGPT Ads · Health & Beauty
    • xpay Listings · Amazon + Google
    • Pricing
    • Free audit
    • Shopify
    • WooCommerce
    • Apparel & Accessories
    • Health & Beauty
    • Overview
  • Commerce Index
    • Shopify apps directory
    • Agentic Commerce Ready Index
    • Methodology
    • Pet brands · WooCommerce
    • Pet brands · Shopify
  • Marketplace
    • 🛍️ xpay.deals — agentic storefront for deals
  • Protocols
    • Overview
    • x402
    • MPP
    • UCP
    • ACP
    • AP2
    • TAP
    • A2A
  • Agent Frameworks
    • Overview
    • LangChain
    • CrewAI
    • Claude MCP
    • AutoGPT
    • LangChain vs Mastra
    • LangGraph vs Pydantic AI
  • Company
    • About xpay
    • Blog
    • Docs
    • GitHub
  • Free prompts
    • Ecommerce prompts
    • Email marketing prompts
    • Product description prompts
    • Facebook ad prompts
    • Skincare prompts
    • Supplement prompts
    • Wine prompts
    • Electronics prompts

© 2025 Agentically Inc. All rights reserved.
Privacy PolicyTerms of UseAcceptable Use Policy