Google Compute Engine >> 意外(未知)用户继续向我们的网站(主页)发出请求

Google Compute Engine >> 意外(未知)用户继续向我们的网站(主页)发出请求

我们已经在 Google Compute Engine 实例上托管了我们的网站(服务器,Linux Debian),问题是,从过去 5 天开始,某个(未知的)意外用户不断向我们的网站(主页)发出请求,这就是为什么我们的后端服务器负载不断增加,意外数据下载也在增加。我们看到了我们的服务器日志,不断有请求发送到我们的服务器。

为此,我们尝试找到发出这些持续请求的请求点,但找不到。请给我们建议,如何停止这些持续请求。

有什么服务可以保护我们的计算引擎实例免受未知用户的侵害?

请查看以下代码片段,它是服务器日志。相同的请求不断发出

GET /api/beta/home/new/image?&key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 150.102 ms - 69746
sjhfjhf
GET /api/beta/article/new/home/assets?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 217.073 ms - 343825
GET /api/beta/article?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg&top_category=true 200 25.765 ms - 11966
GET /api/beta/home/new/image?&key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 60.548 ms - 69746
sjhfjhf
GET /api/beta/article/new/home/assets?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 106.435 ms - 343827
GET /api/beta/article?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg&top_category=true 200 27.907 ms - 11965
GET /api/beta/home/new/image?&key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 54.128 ms - 69746
sjhfjhf
GET /api/beta/article/new/home/assets?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 86.679 ms - 343824
GET /api/beta/article?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg&top_category=true 200 33.595 ms - 11966
GET /api/beta/home/new/image?&key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 87.592 ms - 69746
sjhfjhf
GET /api/beta/article/new/home/assets?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 127.591 ms - 343824
GET /api/beta/article?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg&top_category=true 200 29.016 ms - 11966
GET /api/beta/home/new/image?&key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 69.063 ms - 69746
sjhfjhf
GET /api/beta/article/new/home/assets?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 113.770 ms - 343826
GET /api/beta/article?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg&top_category=true 200 20.781 ms - 11965
GET /api/beta/home/new/image?&key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 53.646 ms - 69746
sjhfjhf
GET /api/beta/article/new/home/assets?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 82.988 ms - 343825
GET /api/beta/article/dr-n-n-khanna-senior-interventional-cardiologist-apollo-hospital-new-delhi-coronary-artery-disease-compounded-by-peripheral-vascular-disease?limit=1&skip=0&compact=&category=&event=&key=6ZzQ52peX5XqUx3t824670wv8jIaf1B4 200 5.652 ms - 2967
GET /api/beta/article/dr-n-n-khanna-senior-interventional-cardiologist-apollo-hospital-new-delhi-coronary-artery-disease-compounded-by-peripheral-vascular-disease/related?limit=4&skip=0&compact=1&category=&event=&key=6ZzQ52peX5XqUx3t824670wv8jIaf1B4 200 14.006 ms - 6601
GET /api/beta/article?key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg&top_category=true 200 28.000 ms - 11966
GET /api/beta/home/new/image?&key=7xOyNH554tY83cBN7Ktpw3s1y68ql6Eg 200 76.620 ms - 69746
sjhfjhf

答案1

你可以通过设置来阻止来自特定 IP 的流量防火墙规则

这种方法相当幼稚,如果你真的遭受了 DDoS 攻击,可以考虑使用真正的 DDoS 缓解解决方案,例如云Flare, ETC。

相关内容