Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

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 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Employee Advisor
3 Antworten

Avatar

Employee Advisor
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

Korrekte Antwort von
Employee Advisor

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.