Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

CorralesD
Level 2
Level 2
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?
1 Accepted Solution
gaureshk3014423
Correct answer by
Level 8
Level 8

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...

View solution in original post

3 Replies
gaureshk3014423
Correct answer by
Level 8
Level 8

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...

View solution in original post

CorralesD
Level 2
Level 2

Hey @gaureshk3014423 thanks for the info.

I am using the same method however my corporate IP address is in this format (123.45.678/90), due to the /90 at the end of the IP the method you linked and the same method I am using will not resolve. I want to know if there is a way I can include IP addresses that end with a /90.