| Post Reply | RetroFed Forum Forum Index » Lemmy Today |
| Author | Message | ||
|---|---|---|---|
mrmanager
lemmy.today
mrmanager@lemmy.todayJoined: 2023-06-07 |
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! |
||
| 25 Original | |||
1984
lemmy.today
1984@lemmy.todayJoined: 2023-07-28 |
I'm always logged in anyway. Not sure if there is a downside to not allowing anonymous users. Not sure what that would be. |
||
| 4 | |||
|
VitoRobles
lemmy.today
VitoRobles@lemmy.today Joined: 2025-01-26 |
I'm always logged in anyway. Not sure if there is a downside to not allowing anonymous users. Not sure what that would be.
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. |
||
| 6 | |||
tal
lemmy.today
tal@lemmy.todayJoined: 2023-10-04 |
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:
Sometimes, but not always, the above error text is also followed by:
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). |
||
| 3 | |||
mschae
discuss.mschae23.de
mschae@discuss.mschae23.deJoined: 2026-02-27 |
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? |
||
| 5 | |||
tal
lemmy.today
tal@lemmy.todayJoined: 2023-10-04 |
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.
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 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 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 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 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. |
||
| 5 | |||
mrmanager
Moderator
mrmanager@lemmy.todayJoined: 2023-06-07 |
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?
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. :) |
||
| 7 | |||
mrmanager
Moderator
mrmanager@lemmy.todayJoined: 2023-06-07 |
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 tha...
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. :) |
||
| 3 | |||
PapaSkwat
lemmy.today
PapaSkwat@lemmy.todayJoined: 2025-11-03 |
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 tha...
Yep, I experienced the same thing. I have total faith that @mrmanager@lemmy.today will fix it though! |
||
| -5 | |||
mschae
discuss.mschae23.de
mschae@discuss.mschae23.deJoined: 2026-02-27 |
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...
That bad? That's insane. I hope this will help then, at least :) |
||
| 3 | |||
mrmanager
Moderator
mrmanager@lemmy.todayJoined: 2023-06-07 |
Yep, I experienced the same thing. I have total faith that @mrmanager@lemmy.today will fix it though!
Absolutely. :) |
||
| 2 | |||
mrmanager
Moderator
mrmanager@lemmy.todayJoined: 2023-06-07 |
Yep, I experienced the same thing. I have total faith that @mrmanager@lemmy.today will fix it though!
@tal@lemmy.today @PapaSkwat@lemmy.today This should be fixed now. It was caused by incorrect caching of the posts. :) |
||
| 3 | |||
PapaSkwat
lemmy.today
PapaSkwat@lemmy.todayJoined: 2025-11-03 |
@tal@lemmy.today @PapaSkwat@lemmy.today This should be fixed now. It was caused by incorrect caching of the posts. :)
Thank you! You rock! |
||
| -4 | |||
mrmanager
Moderator
mrmanager@lemmy.todayJoined: 2023-06-07 |
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.
I totally agree with you actually. Maybe there will be some better solution going forward. |
||
| 3 | |||
mrmanager
Moderator
mrmanager@lemmy.todayJoined: 2023-06-07 |
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 ...
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?
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... |
||
| 3 | |||
|
VitoRobles
lemmy.today
VitoRobles@lemmy.today Joined: 2025-01-26 |
I totally agree with you actually. Maybe there will be some better solution going forward.
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! |
||
| 2 | |||
tal
lemmy.today
tal@lemmy.todayJoined: 2023-10-04 |
@tal@lemmy.today @PapaSkwat@lemmy.today This should be fixed now. It was caused by incorrect caching of the posts. :)
Thanks so much, mrmanager! |
||
| 2 | |||
| Post Reply |
Back to top |