FAIL2BAN - Filter.d - http-dir-trav

From IT-Arts.net


Return to Wiki Index


! Should be customized to your needs !

Filter.d

[Definition]
# http-dir-trav.conf
# Directory Traversal Attempts
# Matches the occurrence of '../' which is often used for directory traversal
           failregex = ^<HOST>.*\.\.\/.*$

ignoreregex =


Jail.conf

[http-dir-trav]
enabled  = true
banaction = %(banaction_allports)s
logpath  = /var/log/nginx/*.access.log
maxretry = 1
bantime  = -1
findtime = 3d
backend = polling