Skip to content

Instantly share code, notes, and snippets.

@hardillb
Last active March 22, 2024 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardillb/08557b9ec5aaf2cbc5c4f8da1bdea7da to your computer and use it in GitHub Desktop.
Save hardillb/08557b9ec5aaf2cbc5c4f8da1bdea7da to your computer and use it in GitHub Desktop.
Fail2Ban /robots.txt
# Fail2Ban filter to match requests for /robots.txt
#
[INCLUDES]
[Definition]
failregex = <HOST> - - \[.*\] \"GET /robots.txt HTTP
ignoreregex =
[nginx-robots]
port = http,https
enabled = true
logpath = %(nginx_access_log)s
action = %(action_mwl)s
maxretry = 1
bantime = 86400
findtime = 86400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment