How to create audiences based on IP using Profile scripts in Adobe Target with / in IP? | Community
Skip to main content
Level 2
January 22, 2020
Solved

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

  • January 22, 2020
  • 2 replies
  • 6354 views
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?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaureshk_Kodag

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

2 replies

Gaureshk_Kodag
Adobe Employee
Adobe Employee
January 23, 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_target.html
Gaureshk_Kodag
Adobe Employee
Gaureshk_KodagAdobe EmployeeAccepted solution
Adobe Employee
January 23, 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...

CorralesDAuthor
Level 2
January 23, 2020

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.