Damn AI scraper bots (probably)! Thanks for the backend work!
Out of curiosity, are they just hitting the lemmy-ui frontend and not hitting the others?
Comment on Server Maintenance - Feb 14 at 22:00 UTC
hitagi@ani.social 1 week ago
Update: I’ll postpone this for a week as it seems like the issue comes from a Chinese datacenter in Singapore that’s scraping the site very aggressively.
I’ll block the IP range and see if that solves the problem.
Damn AI scraper bots (probably)! Thanks for the backend work!
Out of curiosity, are they just hitting the lemmy-ui frontend and not hitting the others?
They only seem to be scraping the lemmy-ui frontend and not the others. I’m actually not 100% sure if it’s scraping but this is what it looks like:
All from the same IP range in Singapore. A huge spike in requests matches the time when Lemmy-UI crashed last night.
I captcha’d the ASN (it’s Alibaba btw) for now (I don’t know if that’s okay to do, hopefully I’m not blocking real people) but perhaps there are better solutions like ratelimiting.
Anyway, let me know if you’re still having trouble accessing the site. The filter should only cover that particular ASN for now.
Whoa. Was there anything else going down in that time frame? I’d be interested to have some profile on the attacker. Do you have any information about where the majority of ani.social’s traffic came from before that?
Nothing else went down. After blocking the ASN, I found out that they’ve been scraping the site from Hong Kong too but not as aggressively with Singapore. Or rather, the Hong Kong servers are more consistent but not as frequent (I don’t know how best to describe it lol). The only info I have is the ASN which points to the Alibaba Group. It also doesn’t disclose what it is other than “Microsoft Edge Windows” which is not very nice in my opinion.
Cloudflare only gives me logs for the past 24 hours but most of ani.social’s traffic comes from other instances federating in (unsurprisingly, Lemmy.World is #1).
Image The green line is Singapore. This happened a few hours after the crash the other night. Image This is a closer look of the spike. The lines are 5 of their IP addresses. You can see that they’re dormant then suddenly they start hammering the instance with requests. Image These are the top countries for the past 6 hours that use GET after filtering out Alibaba. United States is high because they have a lot of web crawlers/scrapers like Open AI (at least they’re honest) but I might block the AI ones too.
BurnedDonutHole@ani.social 5 days ago
May I suggest https://www.crowdsec.net/ for those pesky scrappers? I’ve been using their free service for about 3 years on my personal server and it’s very good for dealing with these kind of problems.
hitagi@ani.social 5 days ago
Thanks! I’ve used this before but decided not to set it up for this server because of Fediverse things. I’m afraid I might break federation with it. But I’ll see if I can work around that.
BurnedDonutHole@ani.social 4 days ago
Good luck.