Forum Discussion
Aug 18, 2020
Hi Jim_Bo,
Can you try this?
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals private_net] } {
# allow access
}
elseif { [class match [HTTP::uri] equals allowed-uri-list] } {
# allow access
}
else {
HTTP::respond 404 content "404 Not Found"
}
}
or
when HTTP_REQUEST {
if { not ([class match [IP::client_addr] equals private_net] || [class match [HTTP::uri] equals allowed-uri-list]) } {
HTTP::respond 404 content "404 Not Found"
}
}