> For the complete documentation index, see [llms.txt](https://fraud-block-ip.labxapp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fraud-block-ip.labxapp.com/documentation/getting-started/create-your-first-blocking-rule.md).

# Create Your First Blocking Rule

A guided walkthrough of adding a rule in Blocking Rules.

This walkthrough creates a country-blocking rule — the same steps apply to every rule type (IP, Region, ISP, User Agent, Referral, Product).

## 1. Open Blocking Rules

In the app, go to **Blocking Rules**. Rules are grouped by type in tabs across the top (IP, Country, Region, ISP, User Agent, Referral, Product).

## 2. Add a rule

1. Select the **Country** tab
2. Click **Add rule**
3. Enter a country (or import a list — see below)
4. Choose an **action**:
   * **Block** — the visitor sees your custom block page
   * **Redirect** — the visitor is sent to a URL you choose instead
   * **Allow** — always let this value through, overriding block rules (useful for exceptions)
5. Optionally add an internal note so your team remembers why the rule exists
6. Click **Save**

## 3. Bulk import

Each rule type supports pasting or uploading a list (one value per line, or CSV) instead of adding values one at a time — useful for importing a long IP or country list.

## 4. Publish

New rules are **live immediately** once saved and enabled — there's no separate publish step. You can toggle a rule off without deleting it if you want to keep it for later.

## 5. Verify it works

Visit your storefront from a location/IP/device that matches the rule (or use a VPN/proxy set to that country). You should see your block page or be redirected, depending on the action you chose.

Next: learn how [traffic is evaluated](/documentation/core-concepts/how-traffic-is-evaluated.md) when multiple rules could apply.
