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

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