# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.spicegems.com/geoip-country-redirect/country-blocker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
