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 = /^($/.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

Answers (0)