Country Based Restrictions for WooCommerce

Plugin Banner

Country Based Restrictions for WooCommerce

by Zorem

Download
Description

Country Based Restrictions for WooCommerce (CBR) lets you control which products customers can see and purchase based on their country. Whether you need to comply with regional regulations, limit shipping to certain destinations, or create country-specific catalogs, CBR gives you per-product control using WooCommerce’s built-in geolocation.

If a product shouldn’t be sold in a particular country — because of shipping limitations, legal requirements, licensing, or business strategy — CBR makes sure customers in that country either can’t see it or can’t buy it. No code required.

Key Features

  • Hide Restricted Products Completely — Remove products from your shop, search results, and catalog for customers in restricted countries. Products become invisible as if they don’t exist.
  • Hide from Catalog, Keep Direct Links — Remove products from shop pages and search, but still allow access via a direct URL. Useful for wholesale or private distribution.
  • Visible but Not Purchasable — Keep products visible in your shop and search results, but disable the Add to Cart button for restricted countries. Customers can browse but not buy.
  • Per-Product Include or Exclude Rules — For each product, choose whether to allow it in specific countries (include) or block it in specific countries (exclude). Flexible enough for any restriction scenario.
  • Automatic Country Detection — Uses WooCommerce Geolocation (IP-based) and the customer’s shipping address to determine their country — no manual input needed from the shopper.
  • Translation Ready — Fully translatable and compatible with multilingual stores.

Common Use Cases

  • Legal & Regulatory Compliance — Block products that can’t legally be sold in certain countries (alcohol, supplements, electronics, age-restricted items).
  • Shipping Limitations — Don’t sell products in countries your logistics provider can’t deliver to. Avoid failed deliveries and refund requests.
  • Regional Licensing — Restrict digital or licensed products to territories covered by your distribution agreement.
  • Country-Specific Catalogs — Show different product selections to different markets, creating a tailored shopping experience per region.
  • Reduce Chargebacks & Wrong Orders — Prevent customers from ordering products that can’t be fulfilled in their location.

How Country Detection Works

CBR determines the customer’s country in this order:

  1. If the visitor is a logged-in customer with a shipping address on file, CBR uses that shipping country.
  2. If no shipping country is set (or the visitor is a guest), CBR falls back to WooCommerce Geolocation (IP-based detection).
  3. You can optionally force the plugin to always use geolocation only.

Upgrade to Country Based Restrictions PRO

Need to manage restrictions at scale? CBR PRO adds powerful bulk tools and advanced controls:

  • Bulk Restrictions by Category, Tag, Attribute, or Shipping Class — Apply country rules to entire groups of products at once instead of editing each product individually.
  • Global (All Products) Restrictions — Set a single rule that applies to your entire catalog.
  • Disable Payment Methods by Country — Control which payment gateways are available based on the customer’s country.
  • Hide Product Prices for Restricted Products — Instead of hiding the product entirely, hide only the price and Add to Cart button.
  • Remove Single Product Rules in Bulk — Clean up individual product rules using bulk actions.
  • Debug Mode — Display a front-end toolbar (visible to admins only) showing the detected country, so you can test restrictions without affecting customers.
  • Country Detection Widget — Display the detected shipping country to shoppers and let them change their location while browsing.

Get Country Based Restrictions PRO

Documentation & Support

Setup guides, configuration tutorials, and developer resources are available in the CBR documentation.

Need help? Visit the support forum.

More Plugins by Zorem

Explore all plugins at zorem.com.

  1. Go to Plugins > Add New in your WordPress admin and search for “Country Based Restrictions”.
  2. Click Install Now, then Activate.
  3. Navigate to WooCommerce > Country Restrictions to configure your general visibility settings.
  4. Edit any product, scroll to the Country Restrictions section, choose Include or Exclude, and select the countries to apply the rule.

Make sure you have set up your selling and shipping countries in WooCommerce > Settings > General.

  1. Plugin settings page — configure general visibility options for restricted products.

    Plugin settings page — configure general visibility options for restricted products.

  2. Per-product country restriction settings — choose Include or Exclude and select countries.

    Per-product country restriction settings — choose Include or Exclude and select countries.

How do I restrict a WooCommerce product to sell only in certain countries?

Edit the product, scroll to the Country Restrictions section, select “Include”, and choose the countries where the product should be available. Customers outside those countries won’t be able to purchase it (or won’t see it, depending on your visibility settings).

How do I block a product from being sold in a specific country?

Edit the product, select “Exclude” in the Country Restrictions section, and choose the countries where the product should be blocked. The product will remain available everywhere else.

How does the plugin detect which country the customer is in?

CBR first checks if the visitor is a logged-in customer with a shipping address. If so, it uses that shipping country. For guests or customers without a shipping address, it uses WooCommerce’s built-in geolocation (IP detection). You can also force the plugin to always use geolocation only.

What happens when a restricted product is in the customer’s cart?

If a customer changes their shipping country at checkout to a restricted country, the product cannot be purchased. The exact behavior depends on your visibility settings — the product may be removed from the cart or the checkout will be blocked.

Can I hide products completely from restricted countries?

Yes. In the plugin settings, choose “Hide completely” as your visibility option. Restricted products will be removed from your shop pages, search results, and category pages for customers in those countries.

Can I keep products visible but prevent purchasing?

Yes. Choose the “Visible but not purchasable” option. Products will appear in your shop and search results, but the Add to Cart button will be disabled for customers in restricted countries.

Can I restrict entire product categories at once?

Bulk restrictions by category, tag, attribute, or shipping class are available in CBR PRO. The free version supports per-product restrictions.

Does the plugin work with variable products and product variations?

Yes. You can set country restrictions on variable products, and the restrictions apply to all variations of that product.

Is the plugin compatible with caching plugins?

Country-based restrictions rely on detecting the visitor’s location, which can conflict with full-page caching. If you use a caching plugin, make sure WooCommerce geolocation is set to “Geolocate (with page caching support)” in WooCommerce > Settings > General.

Does restricting products by country affect SEO?

No. Country-based restrictions are a standard practice for international stores. The plugin controls product visibility at the application level, so search engines can still index your products normally.

Great support

By walstice on November 20, 2025

Fast and reliable support, thank you.

Nice plugin

By goodmansdyr on April 20, 2025

I have been using this pluging for 3 years and it has been always very helpful 😀👍

helpful, great plugin!

By feourives on April 15, 2025

Great for shipping restriction

No proper integration with WPML

By Picard (piotrku) on August 18, 2024

Does not integrate well with WPML - you want to limit the product availability in one country and then you have to go through all the language versions and set this option for that product.

No answer for hiding products from default theme shop page

By optimystery on April 4, 2024

I'm using Storefront by WooCommerce.
The plugin fails to hide products on the shop page. No sensible reply from the developer about why this is not working.

Great Product and Great Support

By teodoryc on December 4, 2023

I had some issues at first while configuring global country restriction rules, but I contacted the plugin support and they sent me a fixed version of the plugin, so everything is working as expected now. I had similar issues with my setup before while using another plugin, but their support couldn't help me, so I had to find another solution and it worked with this plugin. So if you need to have multiple global rules (used for example on many product variations), I recommend choosing this plugin.

Does the job very well!

By alexandreepicerie on March 14, 2023

Restricts certain products I've chosen to certain countries, just what i wanted.

Developer site down

By hardtruth3456 on December 13, 2022

Looks like this has been abandoned. Developer site is down.

Intermitent issues with cache

By Maisonwhite on August 24, 2022

Pro version Worked fine for a while then some customers complained they can not place orders even though they are in the right country. Support was good at first by setting cache rules in WP Rocket but the issue returned, then support just seemed to give up saying it works fine when it clearly does not as some customers can not place orders for some products!

Work fabulously!

By wizlet130 on May 26, 2022

Easy to set up. Better than others as has nice clear banner showing restrictions to customers. Can't fault it.

3.7.7

  • Dev – WP tested up to 6.9.1.
  • Dev – WC Compatibility added up to 10.5.0.
  • Improved – Updated PRO promotional notice on the settings page UI.

3.7.6

  • Dev – WP tested up to 6.8.3.
  • Dev – WC Compatibility added up to 10.3.5.
  • Fix – Updated deprecated WooCommerce script handles to new handles (WC 10.3.0+).

3.7.5

  • Improved – Updated the promotional notice.
  • Dev – WC Compatibility added up to 10.1.2.

3.7.4

  • Improved – Updated the promotional notice.
  • Improved – Updated the settings page design.
  • Dev – WP tested up to 6.8.2.
  • Dev – WC Compatibility added up to 10.0.4.

3.7.3

  • Improved – Updated the promotional notice.
  • Dev – WP tested up to 6.8.1.
  • Dev – WC Compatibility added up to 9.8.5.

For the full changelog of older versions, see the complete changelog.

Back to top