---
title: IP Filtering: Exclude IP addresses or ranges from your results
slug: personalization/docs/ip-filtering-exclude-ip-addresses-or-ranges-from-your-results
docTags: 
createdAt: 2026-08-05T20:59:35.003Z
---

- Optimizely Web Experimentation
- Optimizely Personalization
- Optimizely Performance Edge

IP filtering lets you exclude certain IP ranges from showing up in your experiment results. This is also how you can exclude yourself or your company from experiment results.

IP Filtering does not prevent you from seeing an experiment; it filters you and your actions out from the [results page](docId\:mrUblIuNVOZc1dvjWdsbw). To exclude IP ranges from being included in experiments, see [IP Address Audience conditions](docId\:lQFY_WXMJojQTnBgQ-PAe).

## IP filtering

IP filtering is done at the project level. If you have a staging server and a live page, you might want to keep them in separate projects so that you do not have to turn IP filtering on and off.

To access IP Filtering, go to\* \***Settings&#x20;**> **Advanced**. Under **Results Filtering**, enter the IP(s) that you do not want to be counted in your experiment results.

![ResultsFiltering.png](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/5y8zyceLBv5-81xeFPlGe-20260720-150218.png)

:::hint{type="danger"}
**Warning**

You can use a regular expression (regex) to match multiple IPs, but your IP filtering regex must match the full IP address to work properly. Partial matches will *not* work. See [Set up multiple IPs to be filtered](docId:8E8DkGy0D8y56RdEITF7b) for information. If you have turned on [anonymize visitor IP addresses](docId:6IRj-G36V02vo_nOFHOeO) as well, the IP Filtering regex should match the last octet as 0 (zero).
:::

The IP filtering option lets you exclude as many IPs as necessary in a single line. Bear in mind that you should be using your public [IP address](http://www.whatismyip.com/).

:::hint{type="info"}
**Note**

Optimizely's IP Filter has a max character limit of 1500.
:::

IP filtering is applied at the time you review the results page regardless of when the experiment or campaign was started. Even if you already have experiments or campaigns running prior to adding IP filtering to the project, the filter is applied when you view the results page. 

## Set up multiple IPs to be filtered

If you are filtering just one IP address, you can enter it normally. If you need to enter multiple IPs, you can also use regex. To separate multiple IP addresses, add a vertical pipe ("|"), between them. You are not required to use any special characters if you are entering a single address.

An example of an IP filter for two IP addresses would be: `^34\\.1\\.213\\.45$|^90\\.100\\.5\\.73$`

:::hint{type="warning"}
**Important**

Your regex must follow the the [regex library Google uses](https://github.com/google/re2/wiki/Syntax).
:::

Any additional IPs would also need a | between them to separate them. There is no limit on the number of IP addresses you can add. You are only limited by the 1500 character limit.

## Set up an IP filter range

You can use regex to create an IP range easily without having to enter every IP address in it.

For example, if you wanted to filter out the IP range `206.23.100.50` to `206.23.100.150` you would want to use a regex range instead of writing in every single IP address for that range. Using regex this would end up looking like this: `^206\\.23\\.100\\.([5-9][0-9]|1([0-4][0-9]|50))$`

:::hint{type="info"}
**Note**

You can use [this tool](http://www.analyticsmarket.com/freetools/ipregex) to help you generate these regex formatted IP ranges if needed.
:::
