How to create audiences based on IP using Profile scripts in Adobe Target with / in IP?

CorralesD 22-01-2020
var strIp= user.header('x-cluster-client-ip');
var res = /^(xxx.xx.xxx/xx)$/.test(strIp);
if (res)
{
return "true";
}
 
I want to use the above code to identify and exclude a specific IP from our corporate office.
The IP ends with a /xx and it does not allow me to save this new script.
How can I use the above method to include our IP even though it ends with /xx?

Accepted Solutions (1)

Accepted Solutions (1)

gaureshk3014423 22-01-2020

Hey Corrales, please look into following article.. this may help you solve your question

 https://helpx.adobe.com/target/kb/create_audiences_based_on_specific_IP_using_profile_scripts_in_tar...

Answers (0)