Hi,
Knowledge base article already answers this question:
Adobe Target Help | How to create audiences based on specific IP using Profile scripts in Adobe Targ...
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