security - Stop Scrapers hitting GCP Load Balancer -> CloudRun Service - Stack Overflow

I have a GCP Load Balancer connecting to GCP CloudRun which is running an express app.The express app

I have a GCP Load Balancer connecting to GCP CloudRun which is running an express app. The express app has basic authentication and the CloudRun service only allows calls from the Load Balancer.

However, I am seeing a lot of spam requests like a lot of requests from servers all over the world hitting routes like /.env or /manifest.xml etc.

This looks like scraper activities or malicious.

Since I have implemented a GCP load balancer, I would like to prevent these requests at the load balancer level.

I have thought about allowing only certain routes, but that does not necessarily solve the problem.

I have also thought about blacklisting user agents, but that is not a good approach either as it requires me to keep a list of user agents, and most of them are from Chrome or Safari or even Go-http-client.

Any suggestions on how to do this effectively?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744286523a4566824.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信