xpay✦ Commerce
Directory
WooCommerce plugins
Country Based Restrictions for WooCommerce
Country Based Restrictions for WooCommerce
Restrict WooCommerce products by country using geolocation. Control what customers can see and buy based on their location — per product or in bulk.
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
Tested against the WordPress branch in use today.4 days ago
At least 11.2 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 > Shipment Tracking > 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 tools, payment gateway control, and advanced display options for stores managing restrictions at scale.
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.
- Remove bulk rules — Clear single-product rules in bulk via the product list bulk actions.
- Priority support — Faster, dedicated assistance from the Zorem team.
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.
Plugin details
Tags on WordPress.org
