Forum Discussion
Marcel_Jorba_62
Jul 26, 2011Nimbostratus
How to block a specific URL
My setup is balancing 2 servers for all ports.
These servers host a web server
I need to block a very specific URL on these servers, blocking it or forwarding the requester user to...
Kevin_Stewart
May 06, 2013Employee
While not expressly required, it's generally best practice to include the default option in a switch. In any case, you could probably do something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/foo*" -
"/bar*" -
"/test*" { reject }
default { return }
}
}
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