我的 AWS 服务器上的显眼请求

我的 AWS 服务器上的显眼请求

显然有人在探测我的 AWS 服务器,并导致Environment health has transitioned from Degraded to Severe. 100.0 % of the requests are erroring with HTTP 4xx

我已包含错误日志,您可以看到针对各种可能的 php 脚本的 IP 测试。我该怎么做才能禁止发出请求的 IP?我听说过 fail2ban,但我不确定它是否可以在这种情况下使用?有人遇到过这种情况吗?

[Mon Jun 17 05:39:05.846381 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/ysy.php' not found or unable to stat
[Mon Jun 17 05:39:07.067165 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/3.php' not found or unable to stat
[Mon Jun 17 05:39:07.275508 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/zxc.php' not found or unable to stat
[Mon Jun 17 05:39:07.478261 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/Hzllaga.php' not found or unable to stat
[Mon Jun 17 05:39:08.067036 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/inc.php' not found or unable to stat
[Mon Jun 17 05:39:08.523427 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/webconfig.php' not found or unable to stat
[Mon Jun 17 05:39:09.658591 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/code.php' not found or unable to stat
[Mon Jun 17 05:39:09.871922 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/temtel.php' not found or unable to stat
[Mon Jun 17 05:39:10.770021 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/data.php' not found or unable to stat
[Mon Jun 17 05:39:10.990729 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/fuck.php' not found or unable to stat
[Mon Jun 17 05:39:11.203321 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/.config.php' not found or unable to stat
[Mon Jun 17 05:39:11.409662 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/test.php' not found or unable to stat
[Mon Jun 17 05:39:11.618755 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/cron.php' not found or unable to stat
[Mon Jun 17 05:39:11.831007 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/v.php' not found or unable to stat
[Mon Jun 17 05:39:13.638680 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/zxc1.php' not found or unable to stat
[Mon Jun 17 05:39:13.855491 2019] [php7:error] [pid 26537] [client 172.31.43.195:8084] script '/var/www/html/zxc0.php' not found or unable to stat
[Mon Jun 17 05:39:15.363952 2019] [php7:error] [pid 26786] [client 172.31.43.195:8118] script '/var/www/html/zxc1.php' not found or unable to stat
[Mon Jun 17 05:39:15.569311 2019] [php7:error] [pid 26786] [client 172.31.43.195:8118] script '/var/www/html/zxc2.php' not found or unable to stat
[Mon Jun 17 05:39:15.778830 2019] [php7:error] [pid 26786] [client 172.31.43.195:8118] script '/var/www/html/indexa.php' not found or unable to stat```

相关内容