从2月半个月起,我注意到一个非常小的网站的流量增加了,这个网站开始每天给我发一个访问日志。
机器人一遍又一遍地请求主页,以"3+6=?“的形式发布一些内容。验证。起初,这些信息包含指向其他网站的链接。为此,我决定用php阻止包含"href“、"http”或"www“的所有消息。这删除了一段时间的垃圾邮件,但很快就出现了一些随机内容的新帖子,比如“你去哪所大学”,“我很好”,……
所以我增加了一个蜜罐,一个应该是空的领域,几个小时后机器人就克服了。然后,我添加了一个隐藏字段,其中包含一个模糊的时间戳,它可以将99,99%的帖子排除在外。因此,没有更多的坏数据存储,但机器人仍然使用网站的资源。洪水由数千个请求组成,而且随着时间的推移似乎变得更加强烈。
我发现了很多与我的问题相似的信息,但我不知道如何实施。如何防止这个机器人使用我网站的资源?
下面是显示洪水的图片和访问日志的摘录(其中example.com实际上是网站名称)。谷歌分析公司没有记录这些点击量。

188.143.232.26 - - [11/Mar/2016:15:01:52 +0100] "POST /index.php HTTP/1.1" 200 7367 "http://www.example.com/index.php?p=Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.26 - - [11/Mar/2016:15:01:53 +0100] "POST /index.php HTTP/1.1" 200 7367 "http://www.example.com/index.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.26 - - [11/Mar/2016:15:01:53 +0100] "POST /index.php HTTP/1.1" 200 7162 "http://www.example.com/index.php?p=Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.26 - - [11/Mar/2016:15:01:53 +0100] "POST /index.php HTTP/1.1" 200 7152 "http://www.example.com/index.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.70 - - [11/Mar/2016:15:02:02 +0100] "GET /index.php?p=Home HTTP/1.1" 200 6753 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.70 - - [11/Mar/2016:15:02:02 +0100] "POST /index.php HTTP/1.1" 200 7274 "http://www.example.com/index.php?p=Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.70 - - [11/Mar/2016:15:02:02 +0100] "POST /index.php HTTP/1.1" 200 7274 "http://www.example.com/index.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.70 - - [11/Mar/2016:15:02:02 +0100] "POST /index.php HTTP/1.1" 200 7212 "http://www.example.com/index.php?p=Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.70 - - [11/Mar/2016:15:02:02 +0100] "POST /index.php HTTP/1.1" 200 7212 "http://www.example.com/index.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
188.143.232.70 - - [11/Mar/2016:15:02:02 +0100] "POST /index.php HTTP/1.1" 200 7230 "http://www.example.com/index.php?p=Home" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" https://webmasters.stackexchange.com/questions/91158
复制相似问题