Sorry for the downtime, looks like we got DDosd
post by habryka (habryka4) · 2024-12-02T04:14:30.209Z · LW · GW · 6 commentsContents
6 comments
We were down between around 7PM and 8PM PT today. Sorry about that.
It's hard to tell whether we got DDosd or someone just wanted to crawl us extremely aggressively, but we've had at least a few hundred IP addresses and random user agents request a lot of quite absurd pages, in a way that was clearly designed to avoid bot-detection and block methods.
I wish we were more robust to this kind of thing, and I'll be monitoring things tonight to prevent it from happening again, but it would be a whole project to make us fully robust to attacks of this kind. I hope it was a one-off occurence, but also, I think we can figure out how to make it so we are robust to repeated DDos attacks, if that is the world we live in, though I do think it would mean strapping in for a few days of spotty reliability while we figure out how to do that.
Sorry again, and boo for the people doing this. It's one of the reasons why running a site like LessWrong is harder than it should be.
6 comments
Comments sorted by top scores.
comment by Chipmonk · 2024-12-02T04:17:30.234Z · LW(p) · GW(p)
another weird bug is if i click the link i was just sent in my email, it brings me to a 403 Forbidden page (even though the URLs of this functional page and that 403 page look identical)
Replies from: habryka4↑ comment by habryka (habryka4) · 2024-12-02T04:20:51.862Z · LW(p) · GW(p)
Should now be fixed. We've blocked traffic to basically all pages and been restoring them incrementally to make sure we don't go down again immediately. I just lifted the last of those blocks.
Replies from: Chipmonkcomment by Zolmeister · 2024-12-02T09:48:14.699Z · LW(p) · GW(p)
I recommend Cloudflare.
Replies from: habryka4↑ comment by habryka (habryka4) · 2024-12-02T10:09:00.466Z · LW(p) · GW(p)
Yeah, we considered setting up a Cloudflare proxy for a while, but at least for logged-in users, LW is actually a really quite dynamic and personalized website, and not a great fit for it (I do think it would be nice to have a logged-out version of pages available on a Cloudflare proxy somehow).
Replies from: Zolmeister↑ comment by Zolmeister · 2024-12-02T11:29:17.248Z · LW(p) · GW(p)
I was referring to their (free) DDoS protection service, rather than their CDN services (also free). In addition to their automated system, you can manually enable an "under-attack" mode that aggressively captchas requests.
Setup is simply pointing DNS name-servers at Cloudflare. Caching HTML pages for logged out (i.e. cookie-less) users is a trivial config ("cache-everything").