this post was submitted on 01 Aug 2026
18 points (100.0% liked)

LemmyToday

318 readers
30 users here now

If you experience issues or problems with this instance (lemmy.today), this is the place to discuss them. Or if you just want to ask questions about how something works. Anything related to the instance or lemmy itself.

founded 2 years ago
MODERATORS
 

Hi guys,

Im doing some saturday testing for old.lemmy.today again.

Currently login is required for old.lemmy.today to read posts there. If you are already logged in, you wont notice any difference.

The reason im experimenting is because bots are hammering it, and I wanted to get some statistics of load if I simply dont allow anonymous scraping. Some bots are passing Anubis and scraping content.

So just log in if you havent and it will work just as before.

Thank you!

top 16 comments
sorted by: hot top controversial new old
[–] mschae@discuss.mschae23.de 4 points 6 hours ago (1 children)

Going the old reddit route, I see 🙃

Jokes aside, that's fair. But maybe it would be nicer if it were a redirect to the login page instead of a simple 403 page?

[–] mrmanager@lemmy.today 5 points 6 hours ago (1 children)

I could but there are so many requests, like 30-50 per second, and even if I could cache the login page, I would still spend the bandwidth to send it back to each of those bots. So because of that, and because its not even the main lemmy.today site, I figured its OK to just return 403.

Server load has decreased to almost nothing on old.lemmy.today. During the years we have been online, more and more bots are scraping and now its just ridicolous. :)

[–] mschae@discuss.mschae23.de 1 points 6 hours ago

That bad? That's insane. I hope this will help then, at least :)

[–] tal@lemmy.today 3 points 6 hours ago* (last edited 6 hours ago) (2 children)

It's probably not directly related to these changes if you're only doing it Saturday and it's only on old.lemmy.com, but if you're looking into load problems, might be indirectly relevant. In the past...I think two days, using the standard Lemmy Web UI, I've seen a high rate of the server returning a page just reading:

Error!

There was an error on the server. Try refreshing your browser. If that doesn't work, come back at a later time. If the problem persists, you can seek help in the Lemmy support community or Lemmy Matrix room.

Sometimes, but not always, the above error text is also followed by:

The server returned this error: Error. This may be useful for admins and developers to diagnose and fix the error

This has not, as far as I can tell, shown up when trying to view lists of posts (like, when I view all subscribed posts) but it does show up when trying to view the page for a post. It appears to affect all posts for me, not just specific ones.

I initially thought that its just that the post had been deleted, but I could view said posts fine on the original, remote instance.

One such example that I just hit, tried to load a number of times unsuccessfully:

https://lemmy.today/post/57605044

Which has, as a remote post:

https://nord.pub/c/games@lemmy.world/p/326761/is-routine-worth-playing

I reloaded five or six times, and eventually it came up locally on lemmy.today.

When it happens, it seems to affect all of the post pages that I try to load.

When I see this, the error page comes up pretty quickly, maybe in a second, so it's not some (long) timeout. Maybe hitting some limit on concurrent database queries or something like that?

tries loading page again

And now that post is back to showing an error. Also, I saw it without doing a cache-invalidating reload on Firefox (shift-reload rather than a normal reload), so whatever the server is trying to generate, and failing, it's not driven by the server trying to respond to something that my browser will have cached.

When the problem is happening, the same problem also shows up when I try to view my user profile page (so doesn't as best I can tell, affect lists of posts, either "all subscribed" or viewing posts in a community, but does affect individual post pages and does affect user profile pages).

[–] mrmanager@lemmy.today 3 points 6 hours ago

Hi,

I could actually reproduce this myself now:

https://lemmy.today/post/57605044

This link only works sometimes for me too. I have no idea why so will dig into the server logs. :)

[–] PapaSkwat@lemmy.today 1 points 6 hours ago (2 children)

Yep, I experienced the same thing. I have total faith that @mrmanager@lemmy.today will fix it though!

[–] mrmanager@lemmy.today 2 points 5 hours ago (2 children)

@tal@lemmy.today @PapaSkwat@lemmy.today This should be fixed now. It was caused by incorrect caching of the posts. :)

[–] tal@lemmy.today 1 points 35 minutes ago

Thanks so much, mrmanager!

[–] PapaSkwat@lemmy.today 2 points 5 hours ago

Thank you! You rock!

[–] mrmanager@lemmy.today 1 points 5 hours ago

Absolutely. :)

[–] 1984@lemmy.today 4 points 7 hours ago (1 children)

I'm always logged in anyway. Not sure if there is a downside to not allowing anonymous users. Not sure what that would be.

[–] VitoRobles@lemmy.today 5 points 7 hours ago (2 children)

There's pros and cons.

It's frustrating when I share links to others from Lemmy, and they get hit with a login. I wish Lemmy had a solution where there's a fallback link or something.

[–] mrmanager@lemmy.today 3 points 4 hours ago (1 children)

I totally agree with you actually. Maybe there will be some better solution going forward.

[–] VitoRobles@lemmy.today 1 points 2 hours ago

Don't get me wrong. Do what you need to stop the spam! Security (and admin sanity) should always take priority over growth.

You're doing great work keeping the server up and running!

[–] tal@lemmy.today 4 points 6 hours ago* (last edited 6 hours ago) (1 children)

Yeah, I don't want the whole world of social media to wind up in a "get an account everywhere to view anything" situation.

I think that it's a reasonable stopgap fix from an admin standpoint, because there aren't a whole lot of great levers for admins to pull to try to deal with bots beating the hell out of a server. And one can't just have one's server become unusable.

But it should really be something that is addressed on the dev side. Like, we need a real, long-term solution for the Web.

Also, while improving server performance and failure modes under load would help, the "badly-written, aggressive scraper bots that ignore robots.txt and are given loads of network resources clobbering servers" is something that affects many, many different Web servers out there. This isn't a Lemmy problem, nor even just social media problem. It's a Web problem.

I think what really needs to happen is some form of mechanism that makes it hard for purely-automated systems to hammer a server, something that segregates "bad bots" and humans. Maybe a CAPTCHA or other proof-of-resource thing or something like that.

It's going to also create server admin problems. Think of things like Web search engines indexing sites


server admins normally want their servers to be indexed by "good" bots


so it's going to create additional headache in that even after successfully creating a system that is able to segregate bots and humans, admins have to be able to identify "good" bots


maybe "good" IP ranges or have "good" bots use public keys or something


and then whitelist those. Maybe have some mechanism to distribute "good bot" whitelists and an Apache mod that downloads them occasionally, lets an admin subscribe to a whitelist or something.

I also kind of like the ability to occasionally wget -r sections of sites, and a solution of the above sort will break that without logging in in a browser and handing off browser cookies to wget, which is not ideal.

And there's some resource cost to humans


just lower


for proof-of-resource solutions, and human time cost for CAPTCHAs, all of which are undesirable.

considers

One unorthodox solution might be making it easier to snapshot a site. Like, okay. One of the things that irritates the hell out of me is that the bots are doing this to a number of websites that go out of their way to make it really easy to distribute the data that they're after.

Like, GitHub


which has lots of open-source code, which is useful to train coding AI models


ran into load problems with bots scraping it. That was induced by the same data being massively downloaded over via inefficient Web views. Bots would follow every single link, many of which displayed the same data formatted slightly differently. But...you can already get all of the code far more efficiently, which would be better for GitHub and better for bot operators, by just using git clone to pull the code (and all of its history!). Bot operators could just say "oh, this is GitHub" and just git clone everything and the load would be completely ignorable. I'm sure that people have mass-git-cloned GitHub lots of times before. The reason bot operators presumably aren't doing it is because it takes some amount of time and dev effort on their side compared to just "build generic Web spider and clobber everything".

Same thing for the Threadiverse. The Threadiverse will let you set up a Threadiverse instance and subscribe to everything, efficiently feed all the posts and comments you want to your instance, the moment they come in. In nice, machine-readable form, rather than in something intended for humans that you have to scrape and post-process. But...it takes more dev effort to set up something specific to the Threadiverse than to just treat it like another website.

If there were some sort of widely-adopted API for "request site snapshot" or "request snapshot of changes since time X", widely-enough that it were worth using, maybe bot operators would use that instead. If they don't have to write a "detect GitHub site and git clone" and "detect Lemmy and subscribe to posts and comments" system, but just have a single universal "dump changes" API, they might use that; less dev effort on their end.

considers

I guess the problem is that some website operators might treat the "snapshot API" itself as an opportunity to discriminate between bots and humans, and just return garbage or nothing as a snapshot. Some websites don't want to be scraped at all. If many websites returned incorrect data in response to such an API request, that'd kill the incentive of bot operators to use such an API.

[–] mrmanager@lemmy.today 3 points 4 hours ago

Also, while improving server performance and failure modes under load would help, the “badly-written, aggressive scraper bots that ignore robots.txt and are given loads of network resources clobbering servers” is something that affects many, many different Web servers out there. This isn’t a Lemmy problem, nor even just social media problem. It’s a Web problem.

100%. Everyone gets this problem and then they put their site behind cloudflare. But what happens when the entire Internet is behind an american company who can decide which sites it likes and which it doesnt?

Same thing for the Threadiverse. The Threadiverse will let you set up a Threadiverse instance and subscribe to everything, efficiently feed all the posts and comments you want to your instance, the moment they come in. In nice, machine-readable form, rather than in something intended for humans that you have to scrape and post-process. But…it takes more dev effort to set up something specific to the Threadiverse than to just treat it like another website.

Yeah, the web was intended to be this universal format that would always work on any platform and any operating system. But the downside is clear today. Some estimates say that we already have much more bot activity than human activity on the internet. And we have AI creating content for the last few years...