xpay✦ Commerce
Directory
WooCommerce plugins
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.
4.5
(52 ratings)Will this break my store?
What the WordPress.org registry says about keeping Country Based Restrictions for WooCommerce running.
Tested to 7.1.3
Tested against the WordPress branch in use today.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.7.0
Your host must be running at least this version.5.3
woocommerce
These must be installed and active first.3
Maintenance & trust
Scored on how Country Based Restrictions for WooCommerce is looked after — not on how many stores run it.
96
out of 100Maintenance
35 / 35WordPress compatibility
20 / 20Support responsiveness
Not enough dataMerchant satisfaction
12 / 15Listing transparency
10 / 10Ratings
4.5
52 ratingsCountry 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
- Install and activate the plugin.
- Go to WooCommerce > Country Restrictions to configure the default visibility settings.
- Open any product and set the country restriction rule — choose include or exclude, and select the countries.
- 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.
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
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
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.
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).
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.
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.
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.
Bulk restrictions by category, tag, attribute, shipping class, or globally (all products) are available in CBR PRO.
Disabling specific payment gateways for customers from restricted countries is available in CBR PRO.
Hiding the product price for restricted countries is available in CBR PRO.
Yes. CBR is compatible with WPML and Polylang. Country rules set on a product apply across all language versions of that product.
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.
Yes. CBR is fully compatible with WooCommerce High-Performance Order Storage (custom order tables).
Yes. CBR supports WooCommerce Subscriptions, including variation-level restrictions on subscription products.
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.
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.
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.
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.
Block checkout support is available in CBR PRO. The free version works with the classic shortcode cart and checkout.
Categories
Plugin details
Tags on WordPress.org
