Jace_45978
Dec 16, 2015Nimbostratus
reject public IP to url allow internal IPs
have a site that needs to reject public access to /abc (allowing internal IPs) but allow public/private access to /abc1
started out with this irule to reject /abc but then realized that /abc1 needs to be allowed. not sure how to "match" /abc and allow /abc1
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] starts_with "/abc" ) and not ( [class match [IP::client_addr] equals private_net] )} {
reject
}
}
seems like there may be a modification on the "starts_with" maybe "equals" ?? thanks in advance. Version 10.2.2