Forum Discussion
- ThiyaguCirrus
sorry here is the iRule which I have developed:
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] contains "/..;/") } {
HTTP::respond 200 content "not allowed..."
reject
} else {
return
}
}Hi Thiyagu ,
you do not need to "else" statement , So try this :when HTTP_REQUEST { if { ( [string tolower [HTTP::uri]] contains "/..;/") } { HTTP::respond 200 content "not allowed..." drop } }
And output from my Lab :
> any request doesn’t contain "/..;/" will Pass without issues.
so no need for "else" statement
Regards