r/ComputerSecurity • • Jun 25 '25

404 Cyber Attack

Hello,

I am having an issue where a website I help with has been getting flooded with users from Germany creating page views on 404 random urls on the website. I am looking for a security fix to prevent this. The site is behind Clouflare and I have Germany blocked with a WAF rule but they are still getting in. I believe they are doing this to try to overload my server due to other ways of getting in being blocked by Cloudflare. Any help will be appreciated.

Thanks!

1 Upvotes

15 comments sorted by

View all comments

Show parent comment

1

u/McCoyrsvp Jun 26 '25

Thank you for your replay. I do have the bot detection fight mode enabled in Cloudflare. I also blocked Germany and many other countries individually because the site does get valid traffic from both the UK and Canada. There have been a lot of events that Cloudflare has blocked from even the US. I have the WAF custom rule setup to block many different countries but even so how could an IP from Germany get through and to my site if their IP is out of Germany?

Yesterday they flooded my site with >700 pageviews to Not found pages. I have noticed that they tend to do this whenever my site engagement time is higher than normal and they want to lower it. How can I get them to stop looking for what they want if anyone can create a url that goes to a 404 page on my site by just putting random characters in the url?

1

u/IgnanceIsBliss Jun 26 '25

If you know you have the US, UK and CA, then Id set the rule to block all except those. Allow listing is easier and more secure then block listing.

Its entirely possible that CloudFlare's IP list is not viewing the IP as from DE. If you think you have the rule correct and it is not working, then I'd submit a ticket to CloudFlare support to fix it or understand the limitations of it. No need to spend your time and resources trying to fix it if you dont have control over it. At the end of the day, 700 404's over the course of a day is not really going to impact your server. If it does, then id be more concerned about the resiliency of your setup rather than the particular scanning traffic. Its 2025, youre not going to block all scanning traffic, so you have to expect some gets through.

1

u/magicmulder Jun 26 '25

You can’t.

Why are 700 requests a day such a high impact for you? Do all your requests go through the application server so it’s not the webserver level that can reject a “not found”? With caching that should be even less of an issue.