Docs Country Based Restrictions (Free)

Country Based Restrictions (Free)

Country Based Restrictions (CBR) lets you control which countries can see and purchase products on your WooCommerce store. Restrict individual products by country — hide them completely, hide them from the catalog, or keep them visible but non-purchasable.

How It Works

Country Detection

The plugin determines a visitor’s country in the following order:

  • If the visitor is a logged-in customer with a saved shipping address, the Shipping Country is taken from their account.
  • If no shipping address exists, or the visitor is a guest, the country is detected via WooCommerce GeoLocation (IP-based).
Note
You can force the plugin to always use GeoLocation — ignoring the logged-in customer’s saved shipping country — by enabling Force Geolocation in the Restriction Settings.

Visibility Options

When a product is restricted for a customer’s country, three visibility modes control what they see:

  • Hide Completely — the product is removed from the store entirely, including direct links.
  • Hide from Catalog — the product is hidden from shop and search results but remains accessible via direct URL.
  • Catalog Visible — the product stays visible in the catalog but cannot be purchased (non-purchasable).
Need more?
Country Based Restrictions PRO adds bulk catalog restrictions, CSV upload, a country detection widget and shortcode, payment gateway restrictions, per-category rules, and analytics. See the PRO documentation for details.