shipszky_319427
Oct 12, 2017Nimbostratus
help on uri redirect w/ filtered IP's
I'm searching for a way to filter IP's while doing a uri redirect any thoughts? I do have corresponding data groups, IE list "d" and list "e"
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] contains "/d")
}{ HTTP::redirect "https://abc.de.com//site/d/"}
if { ([string tolower [HTTP::uri]] contains "/e")
}{ HTTP::redirect "https://abc.de.com//site/e/"}
}
Popossibly something along the lines of
if {([string tolower [HTTP::uri]] contains "/d") and { [class match [IP::client_addr] equals d] }
Thanks in advance for the help.