Live data from Hacker News

Ask HN: How does Hacker News avoid (successful) DDoS attacks?

news.ycombinator.com

1–10 of 25 posts

Ask HN: How does Hacker News avoid (successful) DDoS attacks?

#1
Hacker News has an API¹ that doesn't require authentication and doesn't have a rate limit. Naively, that seems like a perfect recipe for DDoS attacks. Yet HN is typically a very reliable site. So what's the secret?

Fn 1: https://github.com/HackerNews/API

Re: Ask HN: How does Hacker News avoid (successful) DDoS attacks?

#2
So this might be naive, but... what interest would someone have in taking down HN?

Like, people with skills to run an attack are also more likely to actually enjoy participating here. It'd be like someone trying to take down Stack Overflow. Even if you can do that – especially if you're the kind of person who could do that – you'd probably be shooting yourself in the foot, right?

Re: Ask HN: How does Hacker News avoid (successful) DDoS attacks?

#3

So this might be naive, but... what interest would someone have in taking down HN? Like, people with skills to run an attack are also more likely to actually enjoy participating here. It'd be like someone trying to take down Stack Overflow. Even if you can do that – especially if you're the kind of person who could do that – you'd probably be shooting yourself in the foot, right?

Yeah, I thought of that. But (especially given political polarization) I would expect that there'd be at least someone with an axe to grind and the necessary technical skills. I mean, there's certainly no shortage of criticism of Hacker News/some HN moderation actions even on HN (or "the orange site" as it's known in some circles).

Re: Ask HN: How does Hacker News avoid (successful) DDoS attacks?

#7
It does have a rate limit, it's just very very high. I've hit it sometime when trying to download every single item since day 0. But it's very lenient, you have to run multiple threads downloading as fast as they can in order to hit it.

The API is not hosted by HN/Ycombinator themselves. If I recall correctly, it was initially hosted by Firebase which is/was a company seed-funded by Ycombinator. It (Firebase) is now a part of Google, so I guess you could say Google is hosting the HN API now.

With that, comes everything they are doing to prevent malicious ddos attacks.

Re: Ask HN: How does Hacker News avoid (successful) DDoS attacks?

#8

It does have a rate limit, it's just very very high. I've hit it sometime when trying to download every single item since day 0. But it's very lenient, you have to run multiple threads downloading as fast as they can in order to hit it. The API is not hosted by HN/Ycombinator themselves. If I recall correctly, it was initially hosted by Firebase which is/was a company seed-funded by Ycombinator. It (Firebase) is now…

> It does have a rate limit, it's just very very high. I've hit it sometime when trying to download every single item since day 0.

Interesting. The API README states:

> There is currently no rate limit.

I guess that's wrong/out of date. I wonder when that changed?

Re: Ask HN: How does Hacker News avoid (successful) DDoS attacks?

#10

IP based rate limiting probably (?)

This doesn't really do much against all but the most trivial denial-of-service attacks.

If someone does try to DDos HackerNews, the amount of resources required to DDos would not justify the investment,as there's nothing to gain here in terms of monetary benefit.
Post reply on HN