Lurker News

Comments (147) 35 threads

Show all comments

Showing thread 6 of 35

classichasclass3 replies#
I respect and appreciate no API key being needed, but how will you prevent excessive usage? I'll just say that it's been a battle on my end to stop people abusing APIs I deploy. It's why we can't have nice things.
Wowfunhappy1 reply#
Limit per IP address?
ianlevesque3 replies#
CGNAT has made the blast radius of that technique really large.
Wowfunhappy#
Idk, Github's API does it, seems to be working. You can always offer an API key as an alternative option.
Arnavion#
Websites being unusable for CGNAT'd users is good for persuading said carriers to start using IPv6 already.
cube00#
The API responded to me over IPv6 so while the consumer market will take time to get over to full IPv6 you can still setup your server today to offer IPv4/6 to your users and connect to this API via IPv6 which will eliminate you getting blocked in a CGNAT blast radius.
stavros1 reply#
For a data point, as a user, I think requiring an API key is fine if the process to create and use a key is simple. Having to use one to prevent abuse is fair enough.
Wowfunhappy#
It's a problem if the code runs client-side and so there's no way to hide the key. I've run into this problem making widgets for the old OS X dashboard, and Javascript Pebble apps.
meteo-jeff#
This is indeed a concern to me.

As others pointed out, blocking IP addresses is an option. Blocking access based on the HTTP Origin header is also possible.
I hope I can go on for some time without being to restrictive. With a fairly quick API that can scale with cheap VMs it should be feasible to keep it running at low expenses even at higher utilisation.