Sabir_Alvi
Jan 18, 2020Altocumulus
iRule to block URI with parameters irrespective of URI query letter case
We have a need to block access to a URI path along with certain parameters in the URL. The iRule we have works fine, however if we change the case of the input URI query parameter, the iRule is ignored and the URL becomes accessible. Can someone help me fix the iRule please?
If we change "type" to "TYPE" or "Type", iRule is bypassed, which is not good.
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] contains "/bla/bla.asp")
and ([string tolower [URI::query [HTTP::uri] type]] equals "bla") }
{ HTTP::respond 403 }
}