JustTesting

joined 2 years ago
[–] JustTesting@lemmy.hogru.ch 1 points 6 days ago* (last edited 6 days ago)

You mean for the referer part? Of course you don't want it for all urls and there's some legitimate cases. I have that on specific urls where it's highly unlikely, not every url. E.g. a direct link to a single comment in lemmy, and whitelisting logged-in users. Plus a limit, like >3 times an hour before a ban. It's already pretty unusual to bookmark a link to a single comment

It's a pretty consistent bot pattern, they will go to some subsubpage with no referer with no prior traffic from that ip, and then no other traffic from that ip after that for a bit (since they cycle though ip's on each request) but you will get a ton of these requests across all ips they use. It was one of the most common patterns i saw when i followed the logs for a while.

of course having some honeypot url in a hidden link or something gives more reliable results, if you can add such a link, but if you're hosting some software that you can't easily add that to, suspicious patterns like the one above can work really well in my experience. Just don't enforce it right away, have it with the 'dummy' action in f2b for a while and double check.

And I mostly intended that as an example of seeing suspicious traffic in the logs and tailoring a rule to it. Doesn't take very long and can be very effective.

[–] JustTesting@lemmy.hogru.ch 4 points 6 days ago* (last edited 6 days ago) (2 children)

This is the way. I also have rules for hits to url, without a referer, that should never be hit without a referer, with some threshold to account for a user hitting F5. Plus a whitelist of real users (ones that got a 200 on a login endpoint). Mostly the Huawei and Tencent crawlers have fake user agents and no referer. Another thing crawlers don't do is caching. A user would never download that same .js file 100s of times in a hour, all their devices' browsers would have cached it. There's quite a lot of these kinds of patterns that can be used to block bots. Just takes watching the logs a bit to spot them.

Then there's ratelimiting and banning ip's that hit the ratelimit regularly. Use nginx as a reverse proxy, set rate limits for URLs where it makes sense, with some burst set, ban IPs that got rate-limited more than x times in the past y hours based on the rate limit message in the nginx error.log. Might need some fine tuning/tweaking to get the thresholds right but can catch some very spammy bots. Doesn't help with those that just crawl from 100s of ips but only use each ip once every hour, though.

Ban based on the bot user agents, for those that set it. Sure, theoretically robots.txt should be the way to deal with that, for well behaved crawlers, but if it's your homelab and you just don't want any crawlers, might as well just block those in the firewall the first time you see them.

Downloading abuse ip lists nightly and banning those, that's around 60k abusive ip's gone. At that point you probably need to use nftables directly though instead of iptables or going through ufw, for the sets, as having 60k rules would be a bad idea.

there's lists of all datacenter ip ranges out there, so you could block as well, though that's a pretty nuclear option, so better make sure traffic you want is whitelisted. E.g. for lemmy, you can get a list of the ips of all other instances nightly, so you don't accidentally block them. Lemmy traffic is very spammy…

there's so much that can be done with f2b and a bit of scripting/writing filters

[–] JustTesting@lemmy.hogru.ch 6 points 2 weeks ago* (last edited 2 weeks ago)

Yes a days earning, at least 30.-, at most 3000.- per day, can be converted to equivalent time in jail* or equivalent time doing community work(4 hours community work = 1 day fine). at least 3 days, at most 180 days (more would mandate jail).

suspended means there's a trial period where the punishment isn't enforced and after which it can be fully or partially dropped if the guilty party didn't commit another crime.

And in this case it's 30 days worth of fine, how long the probation period lasts isn't specified. It's usually 2-5 years

*not going to figure out if jail or prison is the right term…

[–] JustTesting@lemmy.hogru.ch 15 points 3 weeks ago (1 children)

In a perfect world, yes.

In reality, i knew what i did and why i did it, two years ago, after which i never had to touch it again until now, and it takes me 2 hours of searching/fiddling until i remember that weird thing i did 2 years ago…

and it's still totally worth it

Oh or e.g. random env vars in .profile that I'm sure where needed for nvidia on wayland at some point, no clue if they're still necessary but i won't touch them unless something breaks. and half of them were probably not neccessary to begin with, but trying all differen't combinations is tedious…

[–] JustTesting@lemmy.hogru.ch 4 points 1 month ago* (last edited 1 month ago)

Or even worse, reading online that there's some super special item you could have gotten 20 hours into the game if only you didn't open that one regular chest in the starting area in the first 5 minutes of the game. I forgot which Final Fantasy did this? 9 maybe? Pissed me off to no end, i'm not playing through everything again for this… just seemed mean spirited.

More generally, when decisions early on influnce later stuff that you have no way of knowing about yet. I'm not going to play your game 50 times to see all options. So either i play with the wiki open to not miss anything, ruining the fun, or i realize later on that i could have gotten something but it's now forever locked because of earlier decisions, pissing me off.

Baldurs Gate 3 had a lot of that…

[–] JustTesting@lemmy.hogru.ch 22 points 1 month ago* (last edited 1 month ago)

DS9 has lots of stuff against racism, either with aliens or black people in time travel episodes. And the one where Quark transitions for an episode and it's not just milked for laughs or similar, for the 90s that was handled pretty tactfully. lots of womens rights topics, especially with Ferengi.

And in a way that whole show was a critique of imperialism/colonialism

[–] JustTesting@lemmy.hogru.ch 2 points 1 month ago

Actually, the optimism in ministry for the future depressed me and made me not finish it. Even though at the time I was wanting for some optimistic climate fiction.

Here we have this huge threat to humanity and way too little is done about it. But then all the 'solutions' in the book are so unrealistic, like russians using oil equipment in antarctica to help the world… it just made me more depressed about climate change that the solutions he came up with are more fever dreams.

the first chapter was very well done though and should be required reading

[–] JustTesting@lemmy.hogru.ch 1 points 1 month ago

I'd be really curios to see some sort of study done on this. I mean, it's not just americans and most of the west is not insulated from america, either, at least not online. and you don't know from talking to someone online where they're from. At the same time, there's rising fascism and neoliberalism bullshit in europe, too.

I'd love to know how much of it is people getting antsier in general because they're in a shit situation and how much it's 'infectious' from talking with people in shit situations elsewhere, spreading bad vibes. Is this also happening in the chinese web? How about other countries that are more politically/economically aligned with the west but culturally less part of the english speaking web?

There has to be some sociologist out there somewhere studying this, no? But i wouldn't know where to look. if anyone knows of something along those lines, i'd love to hear it.

[–] JustTesting@lemmy.hogru.ch 6 points 1 month ago* (last edited 1 month ago) (1 children)

Where is the new study? They have sources at the bottom but which one is the actual study they talk about?

CTRL+F for "Study" only has the word in the title and in three links in the sources, all of which are from several years ago. I realise it's medium.com, which usually sucks, not real journalism, but how can you make a write-up about a purported new study without mentioning or linking to it once in the article...

[–] JustTesting@lemmy.hogru.ch 6 points 1 month ago

oh for going out ours will sit in front of the entry door and look in our direction, even if we're two rooms away. we really need to pay attention to notice if he suddenly disappears and then check the entry.

It's really interesting how you start to be able to distinguish the different kinds of look they give you, like I couldn't say how but I know if he needs help, needs to go out or if he wants to play depending on how he sits and looks.

[–] JustTesting@lemmy.hogru.ch 17 points 1 month ago (3 children)

My dog is pretty smart, but sometimes he's smart in pretty stupid ways.

One thing he does is, if he needs help he will sit in front of the thing he needs help with. That's it, just sit there. Now, he's a black dog and he will sometimes do this in completely dark corners of the apartment. Maybe he played with his food ball and a treat has fallen under some furniture, he will just sit in front of it in the dark and expect us to help him, just sitting there for 20 minutes sometimes. Usually we only notice once he lets out a sad grumble after having sat there for a long time but I'm sure there's other times where he just gave up and we didn't notice at all. And this is not something we taught him, he just figured sitting quietly in a corner is the best way to get attention.

That and he likes to check if there's anything going on behind him while on walks, which often causes him to walk head-first into obstacles...

[–] JustTesting@lemmy.hogru.ch 4 points 1 month ago

Yes I think that summarizes it nicely 🙂

view more: next ›