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

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

Avatar

Avatar
Boost 3
Level 1
CorralesD
Level 1

Likes

4 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Boost 1
View profile

Avatar
Boost 3
Level 1
CorralesD
Level 1

Likes

4 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Boost 1
View profile
CorralesD
Level 1

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)

Avatar

Avatar
Springboard
Level 8
gaureshk3014423
Level 8

Likes

195 likes

Total Posts

166 posts

Correct Reply

32 solutions
Top badges earned
Springboard
Validate 1
Contributor
Coach
Shape 10
View profile

Avatar
Springboard
Level 8
gaureshk3014423
Level 8

Likes

195 likes

Total Posts

166 posts

Correct Reply

32 solutions
Top badges earned
Springboard
Validate 1
Contributor
Coach
Shape 10
View profile
gaureshk3014423
Level 8

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)