# Block IP addresses

Canonical URL: https://support.optimonk.com/en/articles/block-ip-addresses

Hide a campaign from visitors with specific IP addresses — typically your own office or your developers, so your team's visits don't trigger the popup while you work on the site.

In the app the rule is called **Block IP addresses** — Exclude your office or developers by IP.

## Set it up

1. Open **Campaigns** in the left menu and click the campaign you want to edit.
2. Open the **Settings** tab of the campaign.
3. Scroll to **Who should see the popup** and click **Add new rule**.
4. Under **Visitor**, pick **Block IP addresses**.
5. In the row, choose what you want to block:

- **Specific IP address** — type one address, for example `81.182.14.7`;
- **IP range** — type the **start** and the **end** of the range, for example `10.0.0.1` – `10.0.0.255`. Both ends are included.
6. To block more addresses, click **Add IP address** and fill in the new row. A visitor whose address matches **any** row won't see the campaign.
7. Click **Save** in the rule window, then **Save changes** in the bar at the bottom of the page.

On a campaign that is already published, the saved rule is pushed to the live campaign, so you don't have to publish again.

## Good to know

- Only **IPv4** addresses work (four numbers separated by dots). IPv6 addresses and CIDR notation (for example `/24`) are not supported — use an **IP range** instead of `/24`.
- If an address isn't valid, saving is refused: Please enter a valid IP address (e.g. 81.182.14.7). If the start of a range is after its end: Please enter a valid IP range: the start must not be after the end.
- Leading zeros are removed when you save, so `081.02.3.4` is stored as `81.2.3.4`.
- Not sure what your office's IP address is? Search for "what is my IP" from a computer on your office network. If your internet provider changes your address from time to time, update the rule when it changes.
- The rule card sums the setting up, for example: Hidden from IP address 81.182.14.7. With several rows: Hidden from 3 IP addresses or ranges.
- The rule works per campaign. To hide every campaign from your office, add it to each campaign.
