News for hackers. Stuff that matters.
Re:Netlify just sent me a $104K bill for a simple static site by triyambakam on Tuesday February 27, 2024 @01:41AM (#39520835)
So if I want to migrate off of netlify to something better, where?
Re:Netlify just sent me a $104K bill for a simple static site by toomuchtodo on Tuesday February 27, 2024 @01:50AM (#39520894)
Cloudflare. You will get a call if on a free or pro ($25/month) plan [1] if your bandwidth usage is so high it would warrant increasing your plan. Worst case, they turn you off. Preferred over denial of money attack based on your use case. Set and forget after pointing at your origin (time is money).

You'll get a call on any of their plans if your bandwidth usage exceeds certain thresholds, I am assuming your median usage is relatively tame.

Disclosure: Cloudflare enterprise customer, no other affiliation. I don't get anything for saying nice things.

[1] https://www.cloudflare.com/plans/

Re:Netlify just sent me a $104K bill for a simple static site by AtNightWeCode on Tuesday February 27, 2024 @02:58AM (#39521355)
You typically can't replace Netlify with Cloudflare. You need something like Github actions with some storage, S3 or something and then one can put Cloudflare in front of it all for caching, DDOS protection and so on.
Re:Netlify just sent me a $104K bill for a simple static site by yellow_lead on Tuesday February 27, 2024 @03:03AM (#39521389)
I believe you can replace most cases (static sites) with Cloudflare Workers [1].

[1] https://workers.cloudflare.com/

Re:Netlify just sent me a $104K bill for a simple static site by AtNightWeCode on Tuesday February 27, 2024 @03:26AM (#39521531)
Workers run before the cache so I would avoid this for static sites. One can use workers for dynamic routes on a static site though.
Re:Netlify just sent me a $104K bill for a simple static site by OJFord on Tuesday February 27, 2024 @12:25PM (#39526722)
Sounds like you're thinking of Cloudflare still as just the DNS/DDoS protection it started out with. I'm not that familiar with Netlify, but just going on your description:

- Cloudflare Pages: https://pages.cloudflare.com/

- Cloudflare R2: https://developers.cloudflare.com/r2/

Re:Netlify just sent me a $104K bill for a simple static site by lopkeny12ko on Tuesday February 27, 2024 @01:53AM (#39520906)
For less than 1% of OP's monthly bill, you can build or obtain a more-than-enough server, drop your static files on it, and serve through nginx. And you get to keep it forever; there's no monthly subscription fee!

Seriously, maybe I'm just old, but I look at the pricing of these hip and modern SaaS products for dead simple software and I cannot believe my eyes. The "old fashioned way" works just fine (and has always worked just fine) and is orders of magnitude cheaper.

Re:Netlify just sent me a $104K bill for a simple static site by satvikpendem on Tuesday February 27, 2024 @01:55AM (#39520930)
Hetzner or DigitalOcean with Coolify [0] works great, it's like an open source Heroku that runs on any host, you get git push to deploy, and a bunch of other features built in. It only works on one machine at a time though so it's not like a CDN but for small sites, it's great.

[0] https://coolify.io

Re:Netlify just sent me a $104K bill for a simple static site by tasuki on Tuesday February 27, 2024 @02:20AM (#39521097)
I use DigitalOcean to host some things (with my own setup for deployments with git push, because `curl | bash` is not a great way to install/maintain software).

How am I protected against extra charges for traffic?

Re:Netlify just sent me a $104K bill for a simple static site by welder on Tuesday February 27, 2024 @03:20AM (#39521496)
Same here, using DigitalOcean instead of Vercel to host my Next.js app. I have a billing alert to notify of unexpected bills, but I don't know what DO does if somehow TBs of traffic are sent to my apps or Cloudflare, because DO App Platform actually uses Cloudflare behind the scenes.
Re:Netlify just sent me a $104K bill for a simple static site by whatever1 on Tuesday February 27, 2024 @01:59AM (#39520951)
But you need a static IP, stable internet, UPS, and permission from your wife to have a 24/7 powered noisy box in a room
Re:Netlify just sent me a $104K bill for a simple static site by Yodel0914 on Tuesday February 27, 2024 @02:09AM (#39521023)
I pay less than $5/mth for a VPS with static IP and 1GB/mth transfer. If I get close to any of my CPU/Memory/Disk/Transfer capacity I get a friendly email letting me know that I might want to add more capacity.
Re:Netlify just sent me a $104K bill for a simple static site by fbdab103 on Tuesday February 27, 2024 @02:23AM (#39521113)
I mean, the C10k problem was coined in 1999[0]. A 10W raspberry pi is going to be faster than any server of that day, so it depends on what exactly you are hosting if you need the noisy box.

[0] https://en.wikipedia.org/wiki/C10k_problem

Re:Netlify just sent me a $104K bill for a simple static site by LtWorf on Tuesday February 27, 2024 @02:43AM (#39521263)
How sensitive are you if you think a rpi is noisy?
Re:Netlify just sent me a $104K bill for a simple static site by mvdtnz on Tuesday February 27, 2024 @03:06AM (#39521412)
You don't need a static IP. You can use dynamic DNS or a free product such as Cloudflare Tunnel.
Re:Netlify just sent me a $104K bill for a simple static site by fuzzfactor on Tuesday February 27, 2024 @10:11AM (#39525014)
Dynamic type IP doesn't usually change for no reason, work around whatever instability you have, set BIOS so PC auto-restarts and OS launches apps when failed power returns, get a mini fanless PC which can be easily concealed, and you don't even need to tell anyone who doesn't have a need to know.

Whether that includes your wife or not is up to you ;)

Re:Netlify just sent me a $104K bill for a simple static site by debok on Tuesday February 27, 2024 @02:04AM (#39520984)
Having built serverless apps and "old-fashioned" apps, I seriously believe the old fashioned way is better.

The best of both worlds is to host on AWS EC2 or a similar product from your web service provider of choice.

Re:Netlify just sent me a $104K bill for a simple static site by trog on Tuesday February 27, 2024 @03:58AM (#39521772)
EC2 is so much more expensive than a standard VPS from almost any other provider though. If you're not embedded heavily in other AWS products I don't think it's worth bothering with EC2 - LightSail is way more cost effective and gets you most of the features.
Re:Netlify just sent me a $104K bill for a simple static site by amluto on Tuesday February 27, 2024 @01:58AM (#39520943)
A lot less than 1%.
Re:Netlify just sent me a $104K bill for a simple static site by rtpg on Tuesday February 27, 2024 @01:56AM (#39520938)
I mean you gotta put your server somewhere (I guess hosting it on your connection?)
Re:Netlify just sent me a $104K bill for a simple static site by KingOfCoders on Tuesday February 27, 2024 @01:48AM (#39520883)
I use BunnyCDN to host several sites, they have a minimum cost of $1 per month and I usually pay $1 per month.

I run my sites [0] on Hugo and copy the generated sites (Makefile) to BunnyCDN with their command line tool.

It's a plain CDN, but does include DNS hosting for easy SSL certificates and has scriptable DNS [1] where you can run Javascript for dynamic DNS.

I went with them b/c they are in the EU, but I've stayed because I love them.

[0] e.g. https://www.amazingcto.com/

[1] https://bunny.net/dns/

Re:Netlify just sent me a $104K bill for a simple static site by mourner on Tuesday February 27, 2024 @04:19AM (#39521928)
Love Bunny too, wonderful service and great team. I wish there'd be an easy way to set up auto-deploy to Bunny Edge Storage on GitHub commit (to avoid doing so manually), but I guess it's not to hard to do through GitHub Actions.
Re:Netlify just sent me a $104K bill for a simple static site by KingOfCoders on Tuesday February 27, 2024 @05:15AM (#39522344)
Same.
Re:Netlify just sent me a $104K bill for a simple static site by thinkingemote on Tuesday February 27, 2024 @03:02AM (#39521380)
Looks nice but then so does Netlify at face level! Seems like it is pay as you go, and there is a settable max spend per month.

Does their ddos protection work differently than Netlify and could Bunny ever pull the same stunt with billing?

Re:Netlify just sent me a $104K bill for a simple static site by KingOfCoders on Tuesday February 27, 2024 @03:22AM (#39521505)
No they don't do Ddos protection AFAIK.

I think the main difference to me is

  Netlify  $550/TB [0]
  BunnyCDN  $10/TB [1]
You preload your account:

"In order to keep your service online, you are required to keep a positive account credit balance. Our system will automatically send multiple warning emails if your account balance drops beyond a certain point. If you fail to recharge your account, the system will automatically suspend your account"

[0] https://getdeploying.com/reference/data-egress

[1] https://bunny.net/pricing/

Re:Netlify just sent me a $104K bill for a simple static site by KingOfCoders on Tuesday February 27, 2024 @08:49AM (#39524053)
Just checked, you can also set a limit on monthly bandwidth.

"Monthly Bandwidth Limit (GB) - Limits the allowed bandwidth used in a month. If the limit is reached the zone will be disabled. Set to 0 for unlimited."

Re:Netlify just sent me a $104K bill for a simple static site by thinkingemote on Tuesday February 27, 2024 @08:55AM (#39524113)
Thanks!
Re:Netlify just sent me a $104K bill for a simple static site by korsarrrrr on Wednesday February 28, 2024 @08:27AM (#39537579)
I switched from Bunny to BlazingCDN, with same performance... 1000TB - $0.0025 per Gb And the support helps a lot, they even made the config for Asia for free

https://blazingcdn.com/pricing/

Re:Netlify just sent me a $104K bill for a simple static site by KingOfCoders on Thursday February 29, 2024 @01:27AM (#39546872)
Can't use BlazingCDN because of GDPR.
Re:Netlify just sent me a $104K bill for a simple static site by dvko on Tuesday February 27, 2024 @01:59AM (#39520949)
Hetzner VPS + nginx works fine and goes a looong way. Alternatively, SourceHut pages or GitHub pages is okay too.

If it’s been a while since you did any server work: https://www.dannyvankooten.com/blog/2024/static-site-hosting...

Re:Netlify just sent me a $104K bill for a simple static site by lofties on Tuesday February 27, 2024 @01:51AM (#39520897)
I'm hosting a few large (multiple TB) projects on Cloudflare R2 with no issues for more than a year now. Super happy.
Re:Netlify just sent me a $104K bill for a simple static site by maxboone on Tuesday February 27, 2024 @01:43AM (#39520845)
CloudFlare Pages/ Workers is pretty nice
Re:Netlify just sent me a $104K bill for a simple static site by chronogram on Tuesday February 27, 2024 @02:08AM (#39521009)
For personal servers you can use the dynamic DNS feature on your modem in combination with Cloudflare if you like doing it at home, if it's for your business you can see if you can afford the €2 per month for Hetzner managed hosting or your local equivalent.
Re:Netlify just sent me a $104K bill for a simple static site by apsurd on Tuesday February 27, 2024 @01:47AM (#39520875)
https://render.com/ is free for static sites with custom domain support and SSL included. been happy so far!

used to use s3 for the longest time, but aside from costing a nominal fee, it's so unnecessarily complicated in this day and age.

Re:Netlify just sent me a $104K bill for a simple static site by SXX on Tuesday February 27, 2024 @02:09AM (#39521017)
Keep in mind that according to their forum you'll be charged $30/100GB for bandwidth over free allowance of 100GB:

https://community.render.com/t/confused-about-the-free-tier/...

> Exceeding allotted Bandwidth does result in automatic overage charges. $30 for additional 100 GB blocks.

So the same shady pracrice as on Netlify.

Re:Netlify just sent me a $104K bill for a simple static site by great_thanks on Tuesday February 27, 2024 @04:27AM (#39521990)
wow, thanks for mentioning that, though I'm wondering how this would work, since they didn't ask for any name/billing information at signup...
Re:Netlify just sent me a $104K bill for a simple static site by jefozabuss on Tuesday February 27, 2024 @02:00AM (#39520957)
Just something to keep in mind: this also has about half of additional bandwidth costs (above 100GB) of the reddit post, so in your case you'd be billed for ~$57k or so with similar DDOS. At least they seem to provide monitoring/alerts based on their Security page.
Re:Netlify just sent me a $104K bill for a simple static site by apsurd on Tuesday February 27, 2024 @02:05AM (#39520991)
thanks for the heads up, need to do my due diligence here.

edit: refreshing that they highlight baked in ddos protection right up front on their marketing site: https://docs.render.com/ddos-protection

Re:Netlify just sent me a $104K bill for a simple static site by boredtofears on Tuesday February 27, 2024 @02:38AM (#39521223)
> used to use s3 for the longest time, but aside from costing a nominal fee, it's so unnecessarily complicated in this day and age

its like 10 minutes of setup tops to host on s3

Re:Netlify just sent me a $104K bill for a simple static site by apsurd on Tuesday February 27, 2024 @02:50AM (#39521305)
Not for me. It's always configuration voodoo. i've done it dozens of times and i used to think it's normal developer workflow. now i realize I was putting thumbtacks in my eyes for no good reason.

Creating an s3 bucket is easy enough. but you need to add the policy Json config to allow public access, and it has various versions across time and space. the one that works for me is like 15 years old iono. object resource "//*" something or other.

ok so now you have an s3-east-mybucket.com/index.html, ok custom domain that's route 53 yet more configuration vooodoo to point an s3 website enabled bucket blah blah.

wait! need SSL? oops actually that's cloudfront. need a cloudfront config voodo to point to an s3 config voodoo to your hopefully correctly configured route 53.

are you kidding me, 10 mins? You're a wizard. Now i do git push origin main and my sites up on render.com

Re:Netlify just sent me a $104K bill for a simple static site by boredtofears on Tuesday February 27, 2024 @03:23AM (#39521507)
yes, you need to spend the time to learn about the environment you are hosting your app in and then suddenly it won't seem like "voodoo" as much. you absolutely can set this up in 10 minutes (probably much quicker if you are adept with various infra tooling). theres even wizard dialogs for most of the things you've described right in the AWS UI nowadays.
Re:Netlify just sent me a $104K bill for a simple static site by Ringz on Tuesday February 27, 2024 @03:32AM (#39521582)
That depends on what level of knowledge you are based on. The UX of AWS offers even leading experienced admins and developers some surprising stumbling blocks.
Re:Netlify just sent me a $104K bill for a simple static site by dhaavi on Tuesday February 27, 2024 @01:45AM (#39520862)
Depending on your use case, Hetzner is as cheap as it gets while retaining high quality.
Re:Netlify just sent me a $104K bill for a simple static site by Matheus28 on Tuesday February 27, 2024 @01:54AM (#39520914)
For static sites my choice is usually CloudFlare in front of a S3 bucket. It costs pennies. With cloudflare R2 it might be even easier.
Re:Netlify just sent me a $104K bill for a simple static site by Hamuko on Tuesday February 27, 2024 @02:44AM (#39521265)
Why not just use Cloudflare Pages?
Re:Netlify just sent me a $104K bill for a simple static site by Matheus28 on Tuesday February 27, 2024 @03:14AM (#39521462)
It wasn’t an option when I setup my S3+cloudflare sites. It sounds like an excellent solution now.
Re:Netlify just sent me a $104K bill for a simple static site by INTPenis on Tuesday February 27, 2024 @01:43AM (#39520849)
I use AWS, S3, Cloudfront, ACM with a budget alert.
Re:Netlify just sent me a $104K bill for a simple static site by heavyset_go on Tuesday February 27, 2024 @02:25AM (#39521119)
I just migrated some projects to Cloudflare Pages for the time being.
Re:Netlify just sent me a $104K bill for a simple static site by dombili on Tuesday February 27, 2024 @01:50AM (#39520893)
Github works well for me.
Re:Netlify just sent me a $104K bill for a simple static site by basil-rash on Tuesday February 27, 2024 @01:53AM (#39520910)
If it’s really pure static, github is great because it’s impossible for you to be billed. If you want some functions, Cloudflare free plan is nice because you can configure it to stop operating when the usage limit is reached, or pay $5 a month for more than you’ll likely ever need for a hobby project. Also bandwidth is free.
Re:Netlify just sent me a $104K bill for a simple static site by SXX on Tuesday February 27, 2024 @02:45AM (#39521271)
Do you need to configure Cloudflare to stop operating on limit?

I was thinking they never charge for anything unless you explicitly allowed it.

Re:Netlify just sent me a $104K bill for a simple static site by basil-rash on Tuesday February 27, 2024 @03:38PM (#39529556)
You configure how it stops, whether the static content is available when the functions quota has been exceeded.
Re:Netlify just sent me a $104K bill for a simple static site by dalenw on Tuesday February 27, 2024 @01:43AM (#39520848)
I've always been a fan of cloudflare or firebase for static sites.
Re:Netlify just sent me a $104K bill for a simple static site by bsimpson on Tuesday February 27, 2024 @02:32AM (#39521168)
Firebase Hosting is rad.
Re:Netlify just sent me a $104K bill for a simple static site by mirekrusin on Tuesday February 27, 2024 @02:03AM (#39520979)
Github static page.
Re:Netlify just sent me a $104K bill for a simple static site by zilti on Tuesday February 27, 2024 @12:09PM (#39526538)
Infomaniak