Forum Discussion
What_Lies_Bene1
Oct 31, 2013Cirrostratus
I'd reduce it to this;
when HTTP_REQUEST {
set requri [string tolower [HTTP::query]]
if { ($requri contains "id") && ($requri contains "msg") } {
log local0. "Detected LOIC/HOIC client request based on query string."
reject
}
}
I'm not quite sure about the regex, is there any value in searching for a random six character value? Wouldn't any part of a valid query match? If so, where is it in the query string?