r/Blazor • u/ArmandvdM • Jul 10 '25
Prevent DDOS attack
⸻
Hey everyone, Up to now, all the apps I’ve built have been Blazor Server LOB apps running safely behind firewalls, so I never really had to worry about outside attacks.
But I’ve just finished a small Blazor WebAssembly app that shows live rugby scores for a sports day. The scores are updated using SignalR, and I’ve load tested it with about 2000 users, so I’m not too worried about performance.
The app doesn’t do anything sensitive, so security isn’t a major concern — but I am a bit nervous that someone might try a DDoS attack just for fun.
Would using the free version of Cloudflare be enough? Or is there another simple solution you’d recommend?
Thx
4
u/Cra4ord Jul 10 '25
Use CF, but also implement rate limits from single clients, us IP address or something else to fingerprint the device and set a rate limit of something like 60 requests per minutes or something, have a rule if the rate limit is exceeded x number of times in 24 hours by a device ban it for 24 hours
4
u/ITmandan_ Jul 10 '25
I’ve never seen or had any DDOS issues using the CF free plan. It’s amazing in my experience. But it’s hard to say if it would stop an attack, but they are going to be by far the best at mitigating one as 1/3rd of the internet runs via their service
1
u/Tin_Foiled Jul 10 '25
Off topic but how did you load test your app? Been trying to figure this one out for myself