IP Filtering: Exclude IP addresses or ranges from your results

  • Updated
  • 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. To exclude IP ranges from being included in experiments, see IP Address Audience conditions.

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 Advanced. Under Results Filtering, enter the IP(s) that you do not want to be counted in your experiment results.

ResultsFiltering.png

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 for information. If you have turned on anonymize visitor IP addresses 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.

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$

Your regex must follow the the regex library Google uses.

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))$

You can use this tool to help you generate these regex formatted IP ranges if needed.