Forum Discussion
AngryCat_52750
Nimbostratus
Nov 30, 2012Check URI and then drop
We are looking to setup an irule that would only permit a specfic URI and drop any other requests..
How do i script the part to do the "dropping"?
when HTTP_REQUEST {
if { [HTTP::ur...
Brian_Deitch_11
Nov 30, 2012Historic F5 Account
Personally I believe a switch would scale better and would be easier on the eyes
ltm rule ir_bdizzle {
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
*/enter/url/here* { pool pool_a_80 }
*/abc* { pool pool_abc_80 }
default { drop }
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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