Comment by stanac
1 year ago
I just checked pricing on hetzner (not affiliated with them). First 20 TB are included with VM price, after which it's 1.19 euros per TB. If this happened to someone hosting there it would cost them additional 50 euros. Can't believe the difference in traffic pricing. Netlify is over 1000x more expensive per TB.
People will throw up all sorts of excuses for not just renting a VM for a static site - scalability, ease of use, security.
But in the vast majority of cases you could just take a $5 VM, apt-get install nginx and be absolutely fine. A tiny bit more effort and you can make sure it's always up to date and very secure. Plus you get a VM you can use for other things when needed.
Just regular managed web hosting is enough for simple websites for people who don't actually want to manage a whole server. You don't have to manage anything with such a plan, just put your files where you're told and that's all. It's how simple websites have worked for decades.
Hetzner's plans start at 1,76€/month with a domain name included and unlimited traffic. OVH is slightly cheaper.
I'm probably too old (?) to understand the appeal of Netlify or other similar services, but I really don't understand why they get used.
By the way, Netlify says "100 GB bandwidth" is included with the free plan which I thought mirrored Hetzner's number of "30 TBit total bandwidth", but you have to click the details to see that it's 100 GB per month. So not bandwidth at all, but traffic.
Hetzner doesn't bill incoming or internal traffic [0], only outgoing, so in OP's case he would not have had this problem.
[0] https://docs.hetzner.com/cloud/billing/faq/#how-do-you-bill-...
He would, the attacker was requesting a 3MB .mp3 file, so that was all outbound traffic.
Problem is if you get 10x that traffic, which would already be 500€ in Hetzner, right? Of course its much cheaper and it's very unlikely that you'd get a huge bill but with them, but after all, it would be great if you could just say "Shut my machine down when my monthly spending gets to 100€"