我对服务器的东西非常新,我刚刚设置了一个服务器,其中包含nginx 1.11和php7。
当我还在配置我的项目路径时,我经常检查nginx错误日志。我注意到那里有可疑主机。我肯定不拥有任何 7ammart.com
我该怎么办?我怎么阻止它? 我怎么知道它在哪里运行?
以下是错误日志:
2016/09/11 10:19:19 [error] 3315#3315: *1 open() "/usr/share/nginx/html/robots.txt" failed (2: No such file or directory), client: 162.210.196.130, server: localhost, request: "GET /robots.txt HTTP/1.0", host: "7ammart.com"
2016/09/11 10:19:21 [error] 3315#3315: *2 "/usr/share/nginx/html/index.php/catalog/product_compare/add/product/1/uenc/aHR0cDovLzdhbW1hcnQuY29tL2luZGV4LnBocC9ob21lLWZ1cm5pdHVyZS9wb3RhdG8uaHRtbA,,/form_key/uo0p87myURTXoki5/index.html" is not found (2: No such file or directory), client: 162.210.196.130, server: localhost, request: "GET /index.php/catalog/product_compare/add/product/1/uenc/aHR0cDovLzdhbW1hcnQuY29tL2luZGV4LnBocC9ob21lLWZ1cm5pdHVyZS9wb3RhdG8uaHRtbA,,/form_key/uo0p87myURTXoki5/ HTTP/1.0", host: "7ammart.com"
2016/09/11 10:19:23 [error] 3315#3315: *3 "/usr/share/nginx/html/index.php/wishlist/index/add/product/1/form_key/uo0p87myURTXoki5/index.html" is not found (2: No such file or directory), client: 162.210.196.130, server: localhost, request: "GET /index.php/wishlist/index/add/product/1/form_key/uo0p87myURTXoki5/ HTTP/1.0", host: "7ammart.com"
我无法相信我今天刚刚提出这个问题并且已经存在可疑的活动
答案 0 :(得分:0)
7ammart.com
是运行hostname
的服务器的web crawler
。试图抓取您的网站。
看起来你没有robots.txt
,请添加一个。有一个指南here,它解释了如何做到这一点。
您可以制定规则来拒绝或允许机器人。
将文件放在提供html的根目录。