# 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="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FUzayzbOv8iRBkpNGcSyq%2FBL-0.png?alt=media&#x26;token=d9f01bf8-2114-40bc-a02e-bc378ea5e889" 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="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FEsHKTLGoYOdHtkanLTQp%2FBL-2.png?alt=media&#x26;token=745fcf2f-1679-4ff2-ab9c-0f8d90dd6202" 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](https://help.spicegems.com/geoip-country-redirect/country-blocker/create-block-page-template)&#x20;

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FCpdUsstVxG2xUXLxHn7F%2FBL-3.png?alt=media&#x26;token=a7b7a411-4062-4fce-876b-2d31321b2da4" 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](https://help.spicegems.com/geoip-country-redirect/country-blocker-whitelist-settings#rule-based-whitelisting)

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FUzZONTHTMxz7aiRkdKmV%2FBL-5.png?alt=media&#x26;token=80025210-3b6e-4169-aed7-33df1f04d45d" alt=""><figcaption></figcaption></figure>

Click Save to create the rule in the app.
