Filter by IP (exclusion) on Adobe Target

Avatar

Avatar
Validate 1
Level 1
it_servicio_mk
Level 1

Likes

2 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
it_servicio_mk
Level 1

Likes

2 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
it_servicio_mk
Level 1

04-04-2017

Hi, how to exclude users of an specific IP on all activities of Adobe Target?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Løjmann
Level 4

05-04-2017

Hi,

Without giving it a try, I would say the following should work:

try{
    var ip = user.header('x-cluster-client-ip');
    if(ip.match(/^5\.19\.(0|1|2|3|4|5|5|7|8|9|10|11|12|13|14|15)+\.\d/g)) {
       mboxParam = 'true';
   }
 return mboxParam;
}
catch(e){
  // Error handling...    
}

Read more about applying profile scripts here: https://marketing.adobe.com/resources/help/en_US/tnt/help/c_Profile_Parameters.html

/Løjmann

Answers (3)

Answers (3)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

05-04-2017

Hi ,

Also, adding on to the above reply from Thomas Lojmann , Please refer the following article on the same :

https://helpx.adobe.com/target/kb/create_audiences_based_on_specific_IP_using_profile_scripts_in_tar...

Thanks & Regards

Parit Mittal

Avatar

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Løjmann
Level 4

04-04-2017

Hi,

If you have access to the IP address in your datalayer, you could simply just exclude the Target script based on the IP address.

Alternatively, you will have to setup a profile script setting a property on a target user profile, if the traffic match the specific IP address. Then you just use that as a criteria in your audience.

You can read more about profile scripts here: https://marketing.adobe.com/resources/help/en_US/tnt/help/r_variables_profiles_parameters_methods.ht... and look for user.header('x-cluster-client-ip') as that will give you access to the IP address.

If you don't know about profile scripts, let me know and I can help you write it. (just let me know the IP)

/Løjmann

Avatar

Avatar
Validate 1
Level 1
it_servicio_mk
Level 1

Likes

2 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
it_servicio_mk
Level 1

Likes

2 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
it_servicio_mk
Level 1

05-04-2017

Thank you very much Løjmann, could we have an profile script example for 5.19.0.0? And for a range from 5.19.0.0 to 5.19.15.254?