Also another thing that I do, is set the default website to an empty website. This caches all bots going to the server ip address instead of a url.
I set up a 307 redirect to a page on my main website, and even that page counts 
as a strike against them.
Bots usually don't follow the redirect, and they get banned after a couple 
attempts of anything.


Wayne Sallee
[email protected]
http://www.WayneSallee.com


-------- Original Message --------
*Subject: *  Re: [Fail2ban-users] which jail to enable for crawlers looking for 
CMS vulnerabilities
*From: *     Wayne Sallee <[email protected]>
*To: *         Fail2ban-users <[email protected]>
*CC: *
*Date: *      2019-8-17  09:13 AM
You should create a custom jail like the following:



#******
cat > /etc/fail2ban/filter.d/custom-web-filter.conf << "EOF"

[Init]
badbots = BanMePlease|phpMyAdmin|base64_decode

[Definition]
failregex = (:80|:443) <HOST> .*(?:<badbots>)


ignoreregex =


EOF

#*******



Wayne Sallee
[email protected]



_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to