我收到了许多apache
未找到或无法统计的信息,并想使用 Fail2Ban 来阻止这些 IP 地址。
[Fri Feb 28 03:36:51.816955 2014] [:error] [pid 29027] [client XX.X.XX.XX:1432] script '/var/www/wp-login.php' not found or unable to stat, referer: http://redstonewither.com/wp-login.php
我已启用名为 Fail2Ban 的过滤器apache-noscript
,其中包括以下 failregex:
failregex = [[]client HOST[]] (File does not exist|script not found or unable to stat): /\S*(\.php|\.asp|\.exe|\.pl)
我认为以上内容阻止了这些:
[Wed Feb 26 21:58:38.695327 2014] [:error] [pid 1390] [client XX.XX.XXX.XXX:36422] script '/var/www/wp-login.php' not found or unable to stat
failregex
我说以下内容会阻止引荐来源网站,这样说对吗?
failregex = [[]client HOST[]] (File does not exist|script not found or unable to stat, referrer:): /\S*(\.php|\.asp|\.exe|\.pl)