> For the complete documentation index, see [llms.txt](https://help.spicegems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.spicegems.com/geoip-country-redirect/country-blocker.md).

# Country Blocker

## 1. **Feature – Overview**

The **Country Blocker** feature allows you to block specific countries or IP addresses to restrict unwanted traffic from accessing your store.

With the Country Blocker feature, you can:

* Block visitors from selected countries or regions
* Allow access only to specific countries (e.g., your primary market)
* Block specific IP addresses from accessing your store,

## 2. **Blocking Modes**

You can configure the blocker in two ways:

* **Country Block** \
  Completely blocks access for required countries.&#x20;
* **IP Block**\
  Blocks specific IP addresses from accessing your store.

## 3. **Key Features**

* IP-based country detection for precise blocking
* Block or allow traffic from specific countries or IPs
* Customizable blocker Popup template
* Option to whitelist specific IPs or URLs
* Easy rule management for multiple countries

{% hint style="info" %}
***Important Note:** Blocked visitors will not be able to access the store. However, their visit will still appear in Shopify Analytics because Shopify tracks visitor data as soon as a user lands on the store URL. Our script executes afterward, which is why the visitor data is recorded in the analytics.*
{% endhint %}

Let's create a [blocker rule](/geoip-country-redirect/country-blocker/create-block-rule.md) to restrict store access for unwanted visitors.
