xpay✦ Commerce
Directory
WooCommerce plugins
Country Based Restrictions for WooCommerce
Country Based Restrictions for WooCommerce
Restrict WooCommerce products by country using geolocation — hide products, block purchases, or show them as unavailable in specific countries.
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.0.2
Tested against the WordPress branch in use today.1 month 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 which products customers can see and buy based on their country. Using WooCommerce Geolocation (or the customer’s shipping country), you choose for each product whether to allow or block specific countries — ideal for region-locked products, licensing limits, and compliance requirements.
What you can do (Free)
- Restrict any product to or from specific countries with a per-product include or exclude rule
- Hide restricted products completely from the shop, search, and catalog
- Hide restricted products from the shop and search but still allow access via a direct link
- Keep restricted products visible in the shop and search but block them from being purchased
- Automatically detect the customer’s country via WooCommerce Geolocation, with the shipping country used as a fallback
- Translation ready
How it works
- Go to the plugin settings and set your default product visibility option.
- Edit any product, choose an include or exclude rule, and select the countries it applies to.
- On the storefront, the plugin reads the customer’s shipping country (or WooCommerce Geolocation when no shipping country is set) and applies your rule automatically.
You will need WooCommerce 3.0 or newer.
Upgrade to PRO
Country Based Restrictions PRO adds catalog-wide control plus payment and pricing restrictions:
- Bulk restrict products by Category, Tag, Attribute, Shipping Class, or Global (all products)
- Bulk restrict products via CSV import
- Disable payment gateways for restricted countries
- Hide product prices for restricted products
- Country detection widget so customers can view and change their detected location
- Restrict specific product variations
- Remove single-product rules with a bulk action
Yes. Set an include rule on the product and select the countries where it should be available.
Yes. Set an exclude rule on the product and select the countries where it should be restricted.
The plugin uses the customer’s shipping country if one is set. If not, it falls back to WooCommerce Geolocation. Make sure WooCommerce > Settings > General > Default customer location is set to “Geolocate”.
This is almost always caching. Page caching and CDNs can serve a cached page before geolocation runs. Exclude geolocation-dependent pages from your cache, or configure your caching plugin/CDN to pass geolocation correctly.
Caching can interfere with geolocation. Configure your caching plugin or CDN to exclude pages that rely on geolocation, or use an AJAX-based detection setup.
Free covers per-product country restrictions (hide completely, show as unavailable, or block purchase). PRO adds bulk catalog restrictions by category/tag/attribute/shipping class, CSV import, payment gateway restrictions, hide product price, a country detection widget, and more.
Yes, the plugin supports translation.
Categories
Plugin details
Tags on WordPress.org
