2013-10-30 13:02:59 +00:00
# Fail2Ban filter to block web requests on a long or suspicious nature
2008-03-05 21:47:59 +00:00
#
2013-06-11 18:56:25 +00:00
[INCLUDES]
2013-10-30 13:02:59 +00:00
# overwrite with apache-common.local if _apache_error_client is incorrect.
2013-06-11 18:56:25 +00:00
before = apache-common.conf
2008-03-05 21:47:59 +00:00
[Definition]
2013-11-10 22:46:40 +00:00
failregex = ^%(_apache_error_client)s (Invalid (method|URI) in request|request failed: URI too long \(longer than \d+\)|erroneous characters after protocol string)
2008-03-05 21:47:59 +00:00
ignoreregex =
2013-10-30 13:02:59 +00:00
2013-11-10 22:46:40 +00:00
# DEV Noptes:
#
# fgrep -r 'URI too long' httpd-2.*
# httpd-2.2.25/server/protocol.c: "request failed: URI too long (longer than %d)", r->server->limit_req_line);
# httpd-2.4.4/server/protocol.c: "request failed: URI too long (longer than %d)",
#
2013-10-30 13:02:59 +00:00
# Author: Tim Connors