Forum Discussion
Jad_Tabbara__J1
May 18, 2017Cirrostratus
Hello,
Try this
when HTTP_REQUEST {
if {[HTTP::uri] contains "admin" || [HTTP::uri] contains "login" || [HTTP::uri] contains "mydb"} {
if {not[class match [IP::client_addr] equals my_ip_Address] } {
log local0. "dropped connection my ip address[IP::client_addr]"
reject
}
}
if { !(([string tolower [HTTP::host]] eq "site.domain.com") and ([HTTP::path] starts_with "/xxx/yyy/zzz")) } {
log local0. "rejected request [HTTP::uri] for client [IP::client_addr]"
reject
}
}