Forum Discussion
Patti_G_72768
Nimbostratus
Oct 31, 2013Need help with iRule to detect LOIC/HOIC client
Hi all, the latest rule I'm working on is supposed to detect a LOIC/HOIC client. The rule is supposed to look for the following in the uri query string (not case sensitive): 1) "msg" 2) "id" 3) rando...
What_Lies_Bene1
Cirrostratus
Oct 31, 2013I'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?
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