A lot of time ,users come with a use case where it is required to not allow visitor's with a specific IP to enter an activity in Adobe Target . Hence one of the efficient solution for the same would be to create audiences based on specific IP using profile scripts in Adobe Target.

Hence to  access the IP address of visitor in a  profile script,  it is required to use user.header('x-cluster-client-ip’) in a profile script . Please see the below profile script code: 

var strIp= user.header('x-cluster-client-ip');
 
var res = /^(192.236.17.44)$/.test(strIp);
 
if (res)
{
return "Invalid IP";
}
else
{
return "Valid IP";
}

After all the Set up , You can create an Audience named as "Valid Audience" and add "Visitor Profile" as a rule  and then choose the above created profile script name i.e. "User_Exclude_by_IP" as the refinement and choose condition as "Equals" and value as" Valid IP"

ad

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책