I'm using the map command to try and filter out crawler traffic. It seems to fail, or at least not work the why I would like when x_forwarded_for has more than 1 IP.
map $http_x_forwarded_for $notacrawler {
default 1;
ip1 0;
ip 2 0;
}
my question is how map is functioning underneath. If x_forwarded_for has 2 or more ip's listed does map - map the whole list of ip's to the variable (in this case $notacrawler) or just the last one ?
Thanks