Forum Discussion
Mrad_231364
Nimbostratus
Nov 02, 2017Blocking URI
Hello
I need to block a URI /example.ashx?f=WXR&auser=1134
i created a custom violation called VIOLATION_FORBIDDEN and created the below iRule and apply it on the VS. But it is not working...
Lee_Sutcliffe
Nacreous
Nov 02, 2017you are using
string tolower but comparing it against a string that has upper case characters.
Try changing to this:
if {([string tolower [HTTP::uri]] contains "/example.ashx?fn=wxr&auser=1134")} {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