Valentine_96813
Dec 14, 2012Nimbostratus
Redirect on client IP and uri
I have a request to redirect a session if certain IP comes in and then only if it has a keyword in the URI and then setting persistence. SO basically combining:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr]/8 equals 10.0.0.0] }
with
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/tulip/" }{
persist cookie
}
else {
persist source_addr
}
}
Can this be combined with && in the middle? I am trying to run this through the editor and its not working. Could use a little help.