> 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

Let's understand the process of creating blocker rule to restrict store access for unwanted visitors.

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

* Open the **GeoIP Country Redirect 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%2FjtDioOgg4fNGj18Dez5o%2FCR_Blocker_1.png?alt=media&amp;token=6cbe314e-9e0f-488e-8d0e-d8d72031b969" alt=""><figcaption></figcaption></figure>

### Step 1: General Settings

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

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

**Country:** Select the countries to which the blocker rule should apply.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FDEukIeLcfjwyrXXCUsHH%2FCR_Blocker_Country_1.png?alt=media&amp;token=26fdfbaf-48ad-4ffc-9aa0-82a9ea2302ea" alt=""><figcaption></figcaption></figure>

**IP:** Add the IP addresses to which the blocker rule should apply.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FJPLbCdPN9QPMGURcY5mF%2FCr_Blocker_IP_2.png?alt=media&amp;token=2331a02c-8525-4e40-9245-2eba456e5393" 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="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FOM7LzbJnmXUX97Kc1HyS%2FBlocker_3.png?alt=media&amp;token=4d6bec96-26b3-45d8-abc7-577ac7c6eab3" 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="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FIsqtGCjFmqa18NvDbhEb%2FBlocker_4.png?alt=media&amp;token=ab269d6e-51e4-4b12-9142-518fa5a4f8dd" alt=""><figcaption></figcaption></figure>

Click Save to create the Blocker rule in the app.
