Question
How to block custom bots on Plesk server?
Answer
It is possible to add the required bots into Fail2ban "apache-badbot" jail:
- Log in the server via SSH
- Create backup of apache-badbots.conf file:
# cp -p /etc/fail2ban/filter.d/apache-badbots.conf /root/apache-badbots.conf_back
-
Edit /etc/fail2ban/filter.d/apache-badbots.conf file and add the required bot.
In the example below ClaudeBot is added: