Forum Discussion

john_waterworth's avatar
john_waterworth
Icon for Nimbostratus rankNimbostratus
Oct 06, 2010

consolidate multiple irules in to one irule

is possible to consolidate the following irules into one rule ?

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/mtp/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/console/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/mtpadm/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/remote-deploy/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/juddi/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/activeemg/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/console-base/" } {

 

drop

 

}

 

}

 

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/debug-views/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/plan-creator/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/monitoring/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/plugin/" } {

 

drop

 

}

 

}

 

 

when HTTP_REQUEST {

 

if { [string tolower [HTTP::uri]] contains "/system-database/" } {

 

drop

 

}

 

}

 

 

 

 

1 Reply