IP Address based targeting With Header-level Keys

Description

How to create an AAM trait based on an IP address

Resolution

To target a user on their IP address, create a Trait Expression using one of the examples below:

1.  By using Regular Expression:

Key = “h_ip”              matchesregex                   value= “(172.(16-9|20-9|30-1)(.0-9{1,3}){2}|192.168(.0-9{1,3}){2}|127.0.0.1)$”

The above example will look for IP addresses typically found in internal networks (172’s ,192.168, and 127.0.0.1).

2.  By using endswith Operator

Key = “h_ip”       endswith              value = “0”

3.  For exact Ip Address

Key= “h_ip”        ==           value” 88.208.91.78”

On this page