Forum Discussion
hooleylist
Sep 17, 2009Cirrostratus
It's odd it's not working then... can you try this?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::local_port]: Request to [HTTP::uri] with dg: $::ips_internal"
if { [HTTP::uri] contains "Test.jsp" or [HTTP::uri] contains "Stats.jsp" }{
log local0. "[IP::client_addr]:[TCP::local_port]: Matched URI check"
if {not [matchclass [IP::client_addr] equals $::ips_internal]} {
log local0. "[IP::client_addr]:[TCP::local_port]: Matched IP check. Discarding request to [HTTP::uri]"
discard
}
}
}
Aaron