HTTP GET请求正在我的网站作出未知的.php文件。 为什么以及如何防止这一点

我有一个应用程序部署在数字海洋液滴。 大概在部署一天后,我的服务器崩溃了,最终的日志如下所示:

GET /vehicle/tank/all/1 304 2.965 ms - - GET /vehicle/tank/all/1 304 2.582 ms - - GET /vehicle/tank/all/1 304 1.735 ms - - GET /vehicle/tank/all/1 304 1.566 ms - - GET http://dhg.pisz.pl/httptest.php 404 1.771 ms - 43 GET http://dhg.pisz.pl/httptest.php 404 3.271 ms - 43 GET http://dhg.pisz.pl/httptest.php 404 1.051 ms - 43 GET http://24x7-allrequestsallowed.com/? PHPSESSID=aab45f4f00143PWZJTVBY%40DXJFV%5D 200 1.777 ms - 1878 GET / 200 2.794 ms - 1878 GET http://testp4.pospr.waw.pl/testproxy.php 404 2.617 ms - 52 HEAD /robots.txt 404 2.946 ms - 24 HEAD / 200 1.751 ms - 1878 GET http://dhg.pisz.pl/httptest.php 404 9.679 ms - 43 Error: Connection lost: The server closed the connection. at Protocol.end (/root/tycho/node_modules/mysql/lib/protocol/Protocol.js:109:13) at Socket.<anonymous> (/root/tycho/node_modules/mysql/lib/Connection.js:102:28) at Socket.EventEmitter.emit (events.js:117:20) at _stream_readable.js:920:16 at process._tickCallback (node.js:415:13) [nodemon] app crashed - waiting for file changes before starting... 

这是攻击吗? 如果是这样的话,我能做些什么来防止客户首先做出这些types的获取请求?

你可以用你的防火墙阻止他们的IP地址。 search“fail2ban”和你的服务器的名字应该是关于如何自动化这个过程的一些教程。 如果您注意到大多数攻击来自某个区域,则按区域阻止IP地址(geoIP)也是一种select。

Interesting Posts