- Plesk for Linux
How to add regular expressions to apache-badbots filter?
- Go to Tools & Settings > Updates & Upgrades.
Tools & Settings > IP Address Banning (Fail2Ban) > Jails.
There will be a long list of regular expressions separated by the '|' symbol meaning the logical 'or'.
To add a new definition, find the "badbots" line, the longest in the list, and point to the end of it.
Add a regular expression to the end of the line separating it with the '|' symbol from the prior expressions. For example, if the line ends with "WEP Search 00", it would look like:
...WEP Search 00|(?:a(?:ip|pple)
Now press Apply to apply the changes.