How to Restrict WooCommerce Products by Country
When you run an online store, it’s easy to think that selling to everyone, everywhere, is always a good idea. But the truth is a bit more complicated. Not every product can or should be available in every country. Some items have legal restrictions, shipping to certain regions can be tricky or expensive, and digital products often have licensing limits. Overlooking these factors can lead to frustrating situations—like unhappy customers, costly refunds, or even fines. One way to add extra protection for your store is by using a security plugin to block fraudulent WooCommerce users, helping you prevent fraud while managing international sales.
Restricting product availability by country isn’t just about avoiding problems—it’s smart business. It helps you stay compliant with local laws, keeps your shipping and logistics under control, and allows you to focus marketing efforts on the regions where your products are available. This means better engagement, fewer headaches, and more sales in the right places.
In this guide, we’ll show you why country restrictions matter, walk you through how to set them up step by step, and highlight the tools that make WooCommerce stores smarter and safer. By the end, you’ll know exactly how to control where your products are available, protecting your business and keeping your customers happy.
Understanding WooCommerce Country Restrictions
“Country restrictions” in e-commerce simply means limiting where your products can be sold—or even seen—based on the customer’s location. It’s more than just blocking sales; it’s about running your store legally, efficiently, and strategically across different regions.
There are several common scenarios where country restrictions come into play:
Shipping limitations: Not every carrier delivers to every country, and international shipping can be expensive. Restricting sales to countries you can reliably ship to helps prevent disappointed customers and costly returns.
Tax regulations: Different countries have their VAT, GST, or import duty rules. Selling without accounting for these can result in fines or compliance issues.
Digital product restrictions: Software, e-books, and other digital products often come with regional licensing agreements that limit distribution to specific countries.
Licensing issues for physical goods: Certain products, like alcohol, pharmaceuticals, or specialised equipment, may only be legally sold in specific regions.
It’s also important to understand the difference between restricting purchasing and restricting viewing products:
Restricting purchasing: Customers can see the product, but cannot complete the checkout if they’re in a restricted country. This approach is useful if you want to showcase products globally without violating regulations.
Restricting viewing: Customers in certain countries won’t even see the product listed. This avoids disappointment and makes your store experience cleaner for users outside your target regions.
WooCommerce makes managing both types of restrictions straightforward. With built-in geolocation features, your store can automatically detect a visitor’s country and enforce your rules. This ensures your business remains compliant while providing a smoother, more transparent shopping experience for your customers.
To prevent such issues, it’s a good idea to limit access to your WooCommerce store or specific products for certain countries.
In this guide, we’ll walk you through simple steps to restrict your WooCommerce store and products based on location. Below is a quick overview of the methods we’ll cover—you can jump directly to any section using the links:
Method 1: Restrict Countries Using WooCommerce Settings (No Plugin)
Method 2: Add Country-Based Restrictions for WooCommerce Products (Using a Plugin)
Let’s dive in!
Method 1: Restricting Countries Using WooCommerce Settings
WooCommerce comes with built-in options that make it simple to restrict access to your store based on a customer’s country—without the need for any additional plugins. This method is perfect for store owners who want a quick solution to control where their products are sold.
Step 1: Access WooCommerce Settings

Start by logging into your WordPress dashboard. Navigate to WooCommerce → Settings and click on the General tab. This section contains all the fundamental store settings, including location and currency options, which are essential when managing country restrictions.
Step 2: Locate the Selling Locations

Scroll down to the General Options section until you find Selling Location(s). This dropdown menu determines where your products are available for sale. You will see three options:
Sell to all countries – Your products are available worldwide.
Sell to specific countries – Only allow customers from the selected countries to purchase.
Sell to specific countries, except for – Sell everywhere except the countries you explicitly exclude.
Step 3: Choose Your Restriction Method
Depending on your business needs, select one of the options:

Sell to specific countries, except for…: A new field will appear where you can pick the countries you want to block. This is useful if your store ships globally but you want to exclude certain regions due to shipping limitations, tax regulations, or legal restrictions.
Sell to specific countries: A field will appear allowing you to select only the countries where your store will be accessible. Customers outside these regions will not be able to complete purchases.
Step 4: Save Your Changes

After selecting the countries, click Save Changes at the bottom of the page. WooCommerce will now enforce these restrictions automatically. Customers from blocked countries will not be able to check out, and depending on your store settings, they may see a message informing them that your products are unavailable in their region.
Pros and Cons of This Method
Pros:
Quick and easy: No technical knowledge or additional plugins are required.
Integrated solution: Uses WooCommerce’s native features, so it’s fully supported and maintained.
Ideal for global stores with limited exclusions: Great for excluding just a few countries without complex configurations.
Cons:
Store-wide restriction only: You cannot limit access to individual products—restrictions apply to your entire store.
Limited customization: There’s no option to show custom messages or alternative products for restricted countries.
Not suitable for advanced targeting: If you want to show different products, prices, or offers based on a customer’s location, you’ll need a plugin or custom solution.
This method works best when your goal is to control overall store availability rather than restricting individual products. If you need finer control—like hiding specific items or setting different prices per country—you can use a plugin-based solution, such as Prices by Country for WooCommerce, which allows more granular settings and advanced targeting options.
Method 2: Add Country-Based Restrictions with Aelia Blacklister for WooCommerce
If you want more control over who can place an order in your store, the Aelia Blacklister for WooCommerce plugin is a powerful solution. Unlike simple catalog visibility tools, this plugin works by blocking orders at checkout whenever they match the rules you’ve defined. One of its most effective features is the ability to block customers by their IP address. Since IPs can be linked to geographic regions, this makes it possible to stop fraudulent activity or prevent orders from certain countries altogether.
Here’s a simple step-by-step process to set it up:
Step 1 – Install and Activate the Plugin
Purchase and install the Aelia Blacklister for WooCommerce plugin from the official source. Once activated, a new Blacklister menu will appear in your WooCommerce dashboard.Step 2 – Access the Blacklister Settings
Go to WooCommerce → Blacklister. This is where you’ll manage all your blacklist rules.Step 3 – Add IP Address Rules
In the rules section, add the IP addresses you want to block. You can:Enter a single IP (e.g.,
192.168.1.10)Use IP ranges (e.g.,
192.168.1.*)Apply IP masks for broader coverage (e.g.,
192.168.*.*)
Step 4 – Block by Country (via IP Ranges)
To block entire countries, you can input the range of IP addresses associated with that country. There are publicly available IP-to-country databases you can use to find these ranges.Step 5 – Customise the Error Message
Configure the message that blocked customers will see at checkout (e.g., “We’re sorry, but we currently do not accept orders from your region.”).Step 6 – Save and Test
Save your changes and run a quick test using a VPN or proxy from the restricted country to ensure the rule is working correctly.
With this method, you’re not just hiding products—you’re actively preventing orders from unwanted locations, giving your WooCommerce store an extra layer of fraud protection.
Method 2: Add Country-Based Restrictions with Aelia Blacklister for WooCommerce
If you need stronger protection than simply hiding products, the Aelia Blacklister for WooCommerce plugin gives you full control over who can place an order in your store. Instead of just limiting catalog visibility, it blocks checkout attempts when customers match blacklist rules that you define.
One of the most effective tools this plugin offers is IP address filtering. Since every visitor to your store comes with a unique IP that can often be mapped to a region or country, you can use this feature to stop fraudulent orders, avoid high-risk countries, or comply with shipping restrictions.
Here’s how to set it up step by step:
Step 1 – Install and Activate the Plugin

Go to the Aelia Blacklister for WooCommerce page and purchase the plugin.
Download the plugin
.zipfile.From your WordPress dashboard, go to Plugins → Add New → Upload Plugin.
Upload the
.zipfile and click Install Now.Once installed, click Activate Plugin.
After activation, you’ll see a new Blacklister menu inside your WooCommerce settings.
Step 2 – Access the Blacklister Settings
From your dashboard, go to WooCommerce → Blacklister.
This is where you’ll manage all blacklist and whitelist rules.
The interface is designed to let you add rules for IP addresses, email domains, billing/shipping countries, and regions.
Step 3 – Block Customers by IP Address

You can add individual IP addresses or patterns to block specific visitors. Examples:
Single IP →
192.168.1.10(blocks just that user).IP Range →
192.168.1.*(blocks anyone within that subnet).Wildcard/Mask →
192.168.*.*(blocks entire blocks of IPs, covering a much larger group).
This is useful if you’ve noticed repeated fraud attempts or spam orders from the same network.
Step 4 – Block Entire Countries Using IP Ranges
If you want to prevent orders from specific countries, you can block all the IP ranges associated with that country.
Find IP ranges by country using public databases like:
Copy the IP ranges for the country you want to block.
Paste those ranges into the IP blacklist field.
This ensures that all visitors from that country are blocked at checkout, even if they try different billing/shipping details.
Step 5 – Customise the Block Message
Instead of just denying access silently, you can display a friendly, professional error message.
Example:
“We’re sorry, but we do not currently accept orders from your region. Please contact us if you think this is an error.”
This makes the restriction clear to customers and avoids confusion.
Step 6 – Save & Test the Rules
Click Save Changes.
To make sure your setup works, test it using a VPN or proxy service that lets you connect from the blocked country or IP.
Attempt to place an order — you should see your custom error message.
Why this method works well:
Unlike simple catalog restrictions, it prevents checkout fraud directly at the source.
Gives flexibility with both individual IPs and whole countries.
Adds a professional customer-facing message instead of silently rejecting orders.
Great for stores that have high fraud exposure or those that cannot legally ship to certain countries.



























