- React app that was initially running on a VPS
- A few days ago, we were the target of a DDOS attack that took the site down.
- During the attack, we decided to migrate to Netlify.
- Once migrated, the site was live again. The attack was aparently still taking place for a few hours and Netlify did a great job in keeping the site live...
- ...but it did it at a high cost (3.4 TB of bandwidth consumption, which translates to an expensive bill).
I'm looking for options to protect against the impact of DDOS attacks (avoiding the downtime but also the bandwith usage/cost).
I'd be specially interested in anything that is simple to setup & plays well with Netlify but I will definitely consider all options.
Some options I'm considering:
- Optimizing the page size -that can reduce bandwidth but it's not a final solution (there's always a limit in the optimization you can do).
- Configuring Cloudflare in front of Netlify? -I'm wondering if that will solve the problem and if there are implications to consider (there are some answers on SO about performance and other implications but I haven't really found much).
- Other options?
I acknowledge the question is very broad but suggestions, advice & further details would be really appreciated (how to setup, own experiences, references/articles covering to this specific issue...).