Setup Fail2ban for a specifc url
问题 For shits and giggles I created a small honepot php script. If it is called from a webpage, I want to simply put the IP address in jail. I created a filter that looks like this filename: apache-specific-url.conf [INCLUDES] before = apache-common.conf [Definition] failregex = ^<HOST> -.*"(GET|POST).*\/sshlogin.php\/.*$ ignoreregex = I've also put the following into my jail.local [apache-specific-url] enabled = true port = http,https filter = apache-specific-url logpath = %(apache_access_log)s