when HTTP_REQUEST {
if { [ class match [ string tolower [HTTP::uri] ] starts_with dg_uri ] and not ( [class match IP::client_addr] equals private_net] ) } {
HTTP::respond 302 noserver Location "http://[HTTP::host]/errorpage.html"
}
}
dg_uri is data group list with your URIs (type string)
private_net is data group list with your IPs/subnets (type address)