Forum Discussion
1 Reply
Sort By
Hi KT,
to ignore the case while comparing URIs you have to add a [string tolower $input] or [string toupper $input] to format the URI value into either lowercase or uppercase. Then compare the URI with either lowercase or uppercase formated values.
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "abcd" } then { HTTP::respond 403 content "Access denied..." "Content-Type" "text/html" } }
Note: In the example above the
syntax won't change the HTTP-request as is. The syntax will only use a lower case formating of your URI while comparing the URI value...[string tolower [HTTP::uri]]
Cheers, Kai