Forum Discussion
john_waterworth
Nimbostratus
Oct 06, 2010consolidate 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
Sort By
- hoolio
Cirrostratus
Hi John,when HTTP_REQUEST { Check the requested URI, set to lower case with wildcards switch -glob [string tolower [HTTP::uri]] { "*/mtp/*" - "*/console/*" - "*/mtpadm/*" - "*/remote-deploy/*" - "*/juddi/*" - "*/activeemg/*" - "*/console-base/*" - "*/debug-views/*" - "*/plan-creator/*" - "*/monitoring/*" - "*/plugin/*" - "*/system-database/*" { drop } } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects