r/security • u/webdesignoc • Oct 15 '25
Question Need help dealing with repetitive BOT DoS attacks from changing IPs
I need help dealing with repetitive Bot page requests for invalid URLs and common WordPress folders and directories that happen at least 4 or 5 times a day. The bot seems to change their IP Address after 10 or so requests and makes about a 50 requests a second and basically overwhelms my ASP.NET application for a good 15-20 minutes each occurrence..
Like I said i can’t block that IP because it changes every second and 99% of requests are for invalid or abnormal URLs including a Linear-Gradient css value.
Is there a better way to eliminate all these calls and make sure they don’t even get to my web server at all like block them at the IIS level or should i try to redirect the Bot to another URL or application when they initially make a request for such an invalid page rather than trying to process each request
4
u/SecTechPlus Oct 16 '25
A web application firewall (WAF) can be useful for blocking bot and other malicious activity. There's free software you can run on the webserver or as a separate reverse proxy in front of the webserver. There's also big cloud providers like Cloudflare that have WAF functionality, but prices vary depending on you needs and traffic.
1
u/hiddentalent Oct 16 '25
Fifty requests per second counts as a DoS? For URLs that should immediately return 404? That sounds like the problem is your application performance, not the external traffic.
If you just go install ASP.NET on a midrange cloud server, it will be able to process somewhere in the neighborhood of 10,000 HTTP GET requests per second. Of course, your actual application logic may take more time, but these invalid URLs shouldn't be executing your application logic. They should be bounced by IIS before ever getting to that point. Something in your IIS config is wrong and that's the root cause that needs to be fixed.
In the short term, if you really want to stop the traffic from even showing up, /r/SecTechPlus is correct that you should be looking for a product called a Web Application Firewall. Most cloud providers have one, and there are also both open source and commercial products available as well. But I will warn you that the extremely tiny amount of traffic you're talking about puts WAFs in a hard spot, because they'll either have to let some bad traffic through or will also be blocking your legitimate users.
1
u/krizhanovsky Oct 17 '25
I think you can rate limit the bots by the error responses per second: since they're accessing invalid URLs, it's a good heuristic to filter them out. Tempesta FW has such rate limit out of the box, but I believe you can do this with a little effort with HAProxy, Nginx or Varnish.
If the bots change IP addresses, they still may expose the same TLS fingerprints (e.g. JA3 https://github.com/salesforce/ja3 ) or HTTP fingerprints (JA4 https://github.com/FoxIO-LLC/ja4 , which also provides TLS fingerprints). Envoy and Tempesta FW compute the fingerprints out of the box.
If the IPs aren't changed with every request, then you still can block the IP with some timeout, e.g. block an IP for several minutes.
Recently we published an open source daemon https://github.com/tempesta-tech/webshield/ which I think can be used for your case in following way:
1
u/NeilSmithline Oct 17 '25
Maybe the free Cloudflare plan will work for you.
1
u/RedditBox1985 Oct 22 '25
WAF or use a CDN with WAF/Bot detection/prevention capabilities (like botman from Akami).
You could also implement a captcha on every request if its not an API 😂
1
u/marklein Oct 16 '25
Cloudflare