Forum Discussion

Tyson_James's avatar
Tyson_James
Icon for Altostratus rankAltostratus
Jun 29, 2018

iRule to block traffic to specific paths...

My company wants to block external access to https://server.com/specific_path/* and https://server.com/file.php, but allow access to all from the internal network.

We think we know how to allow only internal traffic, but cannot seem to get the block to work :

    when HTTP_REQUEST {
         if {[class match [string tolower [HTTP::uri]] contains "/this_path/*"] } {
           drop
           }
}

Any suggestions???

Thank you.