# Create Blocker Rule

Follow the steps below to create a blocker rule based on a visitor's Country or IP address:

* Open the **GeoIP app**
* On the Dashboard, click on **Create Rule** - **Country Blocker**

<figure><img src="/files/LDO2P4rYYffzkIrSlpT1" alt=""><figcaption></figcaption></figure>

### Step 1: General Settings

* **Rule Name**: Enter a name for your rule.
* **Country or IPs:** Select countries or add IPs to which the rule should apply.

{% hint style="info" %}
You can choose only one option at a time between "Country" and "IPs"
{% endhint %}

<figure><img src="/files/vTUZXmpItc7tZCcQZwUC" alt=""><figcaption></figcaption></figure>

### Step-2: Blocker Template

Choose the default template or create a new one according to your requirements. \
[Click here to learn more about Blocker Template creation](/geoip-country-redirect/country-blocker/create-block-page-template.md)&#x20;

<figure><img src="/files/drtMndDgvu6Ifo3ZkYvt" alt=""><figcaption></figcaption></figure>

### Step-3: Whitelist

Exclude specific IP addresses (only [Public IPv4 supported](https://whatismyipaddress.com/)) or URLs from blocking. \
[Click here to learn more about whitelisting](/geoip-country-redirect/country-blocker/country-blocker-whitelist-settings.md#rule-based-whitelisting)

<figure><img src="/files/2M945jrJ8SaUwmRg9469" alt=""><figcaption></figcaption></figure>

Click Save to create the rule in the app.


---

# 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/create-block-rule.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.
