Blocking bots with fail2ban

If you run your own servers, you will surely get a lot of weird hackbot requests, searching for accidentally accessible .env files and such. While these bots are generally harmful, unless you have an issue, I prefer to block them so they don’t spam my logs. If it is a Rails app, I use rack-attack , but I also have some jekyll and other stuff and for those, fail2ban is a great tool to solve this…