How to exclude IP address for an AP test? | Community
Skip to main content
abhilashs786367
July 5, 2017
Solved

How to exclude IP address for an AP test?

  • July 5, 2017
  • 1 reply
  • 1661 views

I want to exclude the following IP's to exclude from AP test? Can i exclude them in the audience?

162.115.0.0 - 162.115.255.255

137.188.0.0 - 137.188.255.255

72.96.0.0 - 72.127.255.255

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amit_Kumar

Hi,

Knowledge base article already answers this question:

Adobe Target Help | How to create audiences based on specific IP using Profile scripts in Adobe Target ?

All you have to do is modify the script given there.

var strIp= user.header('x-cluster-client-ip');

var res = /^(192.236.17.44)$/.test(strIp);// change this to match the list of you IP address

if (res)

{

return "Invalid IP";

}

else

{

return "Valid IP";

}

The idea is very Simple, Create a default test segment for all IP address so that this will not impact you reporting or anything.

Regards,

Amit

1 reply

Amit_Kumar
Amit_KumarAccepted solution
Level 10
July 5, 2017

Hi,

Knowledge base article already answers this question:

Adobe Target Help | How to create audiences based on specific IP using Profile scripts in Adobe Target ?

All you have to do is modify the script given there.

var strIp= user.header('x-cluster-client-ip');

var res = /^(192.236.17.44)$/.test(strIp);// change this to match the list of you IP address

if (res)

{

return "Invalid IP";

}

else

{

return "Valid IP";

}

The idea is very Simple, Create a default test segment for all IP address so that this will not impact you reporting or anything.

Regards,

Amit