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
- 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.
👉 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
More Plugins by Zorem
Explore the full catalog at zorem.com