> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Block or redirect by IP address

## Overview

Block or redirect visitors by their IP address, the number that identifies their internet connection. You can list single addresses, the first part that addresses start with, or a whole block of addresses, and either block the visitor or redirect them elsewhere. Rules live in **Block & Re-director > Blacklist** under **Block IP Address** or **Redirect IP Address**.

## What you'll learn

* [How to block or redirect an IP address?](#2-how-to-block-or-redirect-an-ip-address)
* [How it works?](#2-how-it-works)
* [Who can use this feature?](#2-who-can-use-this-feature)

## How to block or redirect an IP address?

**Step 1:** Open **Block & Re-director > Blacklist**, choose **Block** or **Redirect**, then click **Block IP Address** or **Redirect IP Address**.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/20250908-144752_vxq95o.png)

**Step 2:** Set the status: **Enable** applies the rule as soon as you save, **Disable** stores it without applying it.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/20250908-145307_150b2gi.png)

**Step 3:** Redirect rules only: fill in **Redirect to** (**External URL** or **Shopify Market**) and **Displayed name (optional)**. See [Use a Shopify Market as your redirect destination](https://help.omegatheme.com/en/article/a-complete-guide-block-redirect-rules-1f1wr1i/).

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/20251203-131547_1c5shan.png)

**Step 4:** Under **Select condition**, pick **IP address**, **IP start with** or **IP Range**, fill in the fields (table below) and click **Save**.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/20250908-151222_4pa89o.png)

## How it works?

A visitor matches when their IP address fits any entry in the rule. Both IP address formats, IPv4 and IPv6, work.

| Select condition | What to enter | Example | Matches |
|---|---|---|---|
| **IP address** | One or more full addresses, **Manual** or **Upload CSV** | `203.0.113.7` | Exactly that address |
| **IP start with** | The first part of an address, **Manual** or **Upload CSV** | `203.0.113.` | Every address beginning with that text |
| **IP Range** with **Select IP range type** = **CIDR** | A whole block of addresses written like the example, **Manual** or **Upload CSV** | `203.0.113.0/24` | Every address in that block |
| **IP Range** with **Select IP range type** = **Range** | **Start IP** and **End IP** | `203.0.113.1` to `203.0.113.50` | Every address between the two, inclusive |

### Manual vs Upload CSV

* **Manual**: type the entries in the input field.
* **Upload CSV**: click **Upload CSV** and pick a file. Download the sample file from the link in the form to see the format.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/20250908-151340_1lepo8x.png)

| Important: a CSV file must be at most 2 MB and 500 rows. Both limits apply.

### Rules added by Blockify

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/20260402-105521_1uy2ia6.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/20250908-160115_1bj6gsm.png)

Rules added by **Auto-block visitors placing fraud orders** are IP address rules too; their **Source** reads **Auto-block** with the order number, and the **Source** filter set to **Auto-block** lists them all. See [A complete guide: Block & Redirect rules](https://help.omegatheme.com/en/article/a-complete-guide-block-redirect-rules-1f1wr1i/).

## Who can use this feature?

**IP address** and **IP start with** rules are available on all plans (Free plan: 2 active rules). **IP Range**, with **CIDR** or **Range**, is available on the **Enterprise** plan and above.

## FAQs

1. **Can I block my own IP address by mistake?**
Yes. If you lock yourself out, use the **Admin's access URL** in **Settings > General settings**. See [How can I access my store if I have blocked my own country?](https://help.omegatheme.com/en/article/how-can-i-access-my-store-if-i-have-blocked-my-own-country-ae313d37-1ibz4bf/).

2. **How many addresses can one rule hold?**
A CSV import holds up to 500 rows. For larger lists, use **IP start with** or **IP Range** to cover many addresses in one entry.

3. **How do I know how many visitors a rule blocked?**
Open **Analytics > Visitors**, filter by **Block reason** and set a date range. There is no counter on the rule itself.

4. **Does a whitelist rule override an IP block?**
Yes. Whitelist rules are checked first, so a whitelisted IP gets in even if it also matches a block rule.