Skip to content

Instantly share code, notes, and snippets.

Avatar

Danny Verkade - Cream dverkade

View GitHub Profile
@dverkade
dverkade / badbot
Created Oct 24, 2017 — forked from nawawi/badbot
block bad bot apache+fail2ban
View badbot
# file /etc/fail2ban/jail.conf
[rutweb-badbot]
enabled = true
filter = rutweb-badbot
action = iptables-multiport[name=badbot, port="80,443"]
logpath = /var/log/httpd/badbot.log
bantime = 600
maxretry = 1
# end file