IP Filtering: Exclude IP addresses or ranges from your results

  • Updated
  • Optimizely Web Experimentation
  • Optimizely Performance Edge performance-edge-logo.png

IP filtering allows you to 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.

performance-edge-logo.png Optimizely Performance Edge is a lightweight experimentation product that delivers significantly faster performance than previous versions of Optimizely Web Experimentation. It does this by relying on a streamlined "microsnippet" which limits the range of available features.

Optimizely Performance Edge and Optimizely Web Experimentation filter IP addresses the same way, so all information contained in this article applies to experiments created with either version.

IP Filtering will not prevent you from seeing an experiment; it will simply make sure to filter 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, so if you have a staging server and a live page it might make sense to keep them in separate projects so that you do not have to keep turning IP filtering on and off.

To access IP Filtering, go to Settings Advanced. In the field under Results Filtering, enter the IP(s) that you do not want to be counted in your experiment results.

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 more. 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 Web Experimentation and Optimizely Performance Edge'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 was started. So, even if you already have experiments 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.

However, 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

Optimizely Web Experimentation and Optimizely Performance Edge support regex, so you can use it 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))$

If regex is a bit out of your wheelhouse, you can use this handy tool to help you generate these regex formatted IP ranges.