Forum Discussion

Kaio_Mansano_30's avatar
Kaio_Mansano_30
Icon for Nimbostratus rankNimbostratus
Jul 14, 2017

Simple Traffic Restriction

Hi, how are you? I need a help to create an Irule with follow condition:

 

What the command to allow access in that URIs ?

 

Allow access to 03 specifics URI requests:

 

 

 

 

And deny access to any other URI:

 

 

Ex:

 

when HTTP_REQUEST {

 

if {([HTTP::method] equals "GET") and ([HTTP::uri] equals "/URI1")} { ?? }

 

elseif {([HTTP::method] equals "GET") and ([HTTP::uri] equals "/URI2")} { ?? }

 

elseif {([HTTP::method] equals "GET") and ([HTTP::uri] equals "/URI3")} { ?? }

 

else {([HTTP::method] equals "GET")}{ drop }

 

}