Expand my Community achievements bar.

Get ready! An upgraded Experience League Community experience is coming in January.
Submissions are now open for the 2026 Adobe Experience Maker Awards

IP address audience filter

Avatar

Level 2

hello all,

 

I'm trying to create an audience rule in Target to filter out users based on IP address.  I've seen it accomplished in the past using a profile script like this:

 

user.header('x-cluster-client-ip')

 

which would fetch the user IP address.  However, I'm not seeing this working in action.  does anyone have advice on how this could be set up ?

1 Reply

Avatar

Employee Advisor

Hi @RJBu ,

Try below PS, It worked for me -

var visitorIp = user.header('x-forwarded-for');
return visitorIp; 

Gaureshk_Kodag_0-1739020204260.png