Control exactly who buys
your products ā and where.
Restrict product purchases by country, user role, and guest access. Price and Add to Cart auto-hidden for unauthorized buyers ā no code needed.
30-day money-back
1 year of updates
No coding needed
The right product ā for the right customer ā in the right country.
Country-Based Product Restriction for WooCommerce allows store owners to control product purchases using a powerful combination of country and user role rules. Admins select specific countries and define which user roles are allowed to purchase within those countries ā ensuring only the right customers, in the right location, with the right role, can place orders.
The plugin automatically detects each customer’s country via IP and enforces restrictions instantly ā hiding prices and disabling Add to Cart when conditions are not met. Ideal for B2B stores, regional distributors, wholesale pricing models, and controlled product availability.
Everything this plugin does ā at a glance
Restrict product purchases by selected countries
Assign allowed user roles per country
Only matching country + role users can purchase
Block purchases if role doesn’t match country
Optional guest purchase control by country
Hide price and Add to Cart for restricted users
Automatic country detection via IP geolocation
Is your store selling to the wrong people?
Without proper restrictions, unauthorized buyers slip through every day ā causing refunds, compliance issues, and broken distribution deals.
Restricted-country buyers completing purchases you legally can’t fulfill.
Retail customers buying wholesale-only products at distributor prices.
Distribution agreements broken because your store has zero geo-control.
Guest users bypassing role restrictions and placing orders you can’t ship.
Everything you need for airtight access control
Seven powerful controls that work together to give you complete authority over who buys what ā and from where.
Country Selection Control
Admins can select one or more countries where the product is available. Customers outside these countries cannot purchase the product ā blocked automatically with no manual work needed.
Role Assignment Per Country
For each selected country, admins must choose which user roles are allowed to purchase. This ensures precise control over who can buy in each region ā going beyond simple geo-blocking.
Country + Role Matching Logic
A product can be purchased only when both conditions match ā customer country is allowed AND customer role is allowed for that country. Country matches but role does not ā blocked. Role matches but country not allowed ā blocked. No loopholes.
Block Unauthorized Buyers
Users from allowed countries but with unapproved roles cannot purchase the product. Every unauthorized buyer is stopped before they even reach checkout ā automatically, every time.
Guest User Control
Admins can allow or block guest users on a per-country basis. Guests can only purchase if their country is allowed AND guest access is enabled for that country ā perfect for B2B markets that require registration.
Hide Price & Disable Add to Cart
Restricted users will not see the price or Add to Cart button ā preventing confusion and unauthorized orders. Clean, professional experience for every visitor regardless of their access level.
Automatic Country Detection
The plugin detects each customer’s real-time location using IP geolocation and applies rules automatically on every product page visit. No extra APIs or configuration needed ā it works right out of the box.
Exactly what gets blocked ā and what doesn’t
Strict AND logic ā both country and role must match. No workarounds, no loopholes.
| Country |
User Role |
Result |
| Allowed |
Allowed role |
Can Purchase |
| Allowed |
Wrong role |
Blocked |
| Not allowed |
Allowed role |
Blocked |
| Not allowed |
Wrong role |
Blocked |
| Allowed |
Guest (ON) |
Can Purchase |
| Allowed |
Guest (OFF) |
Blocked |
Built for real-world selling scenarios
From B2B wholesale to legal compliance ā this plugin solves the access challenges real store owners face every day.
Wholesale & B2B Distributors
Limit wholesale products to verified buyers in specific countries. Retail visitors see the product but cannot purchase without the right role.
Regional Distribution Agreements
Prevent direct sales that violate exclusive distribution deals. Restrict each product to only the territories your agreements cover.
Legal & Compliance Restrictions
Certain products cannot be legally sold in certain countries. Restrict them automatically at product level ā no manual order review needed.
Regional Product Launches
Launch in select countries first, then expand. Simply add countries to the allowed list when you’re ready to scale ā no code changes.