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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates
SOLVED

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

Avatar

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

Avatar

Correct answer by
Employee

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

Avatar

Correct answer by
Employee

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

Avatar

Level 2

Hey @Gaureshk_Kodag 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.