Forum Discussion
JP_42120
Nimbostratus
Oct 18, 2012irule performance: combine multiple irules
Hi,
We have an several irules that we are trying simplify and combine for better performance.
first to block certain URI's
when HTTP_REQUEST {
switch [HTTP::uri] {
"...
JP_42120
Nimbostratus
Nov 07, 2012Hi Gents,
when HTTP_REQUEST {
set path [string tolower [HTTP::path]]
switch $path {
"/proxy/" -
"/content/xmlmovies/undefined" -
"/duas/" {
HTTP::respond 404 content "404 - file not found."
return
The portion to block the URI's is not working as expected.
do I need to add "startswith" or "*" to block anything after /duas/
we are seeing /duas/something still getting through....
thanks.
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