Skip to content

Instantly share code, notes, and snippets.

View ravoro's full-sized avatar

Roman Vorobyov ravoro

View GitHub Profile
@ravoro
ravoro / apache-404.conf
Created October 22, 2017 15:49
Fail2Ban filter for catching 404 responses.
# Fail2Ban filter for catching 404 responses.
#
# Useful if you wish to block an ip that is making too many 404 requests.
# Which is typical behavior for a vulnerability scanner.
[Definition]
failregex = ^<HOST> - .* "(GET|POST|HEAD).*HTTP.*" 404 .*$
ignoreregex =