cross-posted from: https://feddit.online/c/[email protected]/p/2139417/pov-you-visited-a-website-that-use-a-shitty-man-in-the-middle-company
cross-posted from: https://feddit.online/c/[email protected]/p/2139417/pov-you-visited-a-website-that-use-a-shitty-man-in-the-middle-company
Funny as feddit.online, for whatever reason, is behind cloudflare.
It’s for a good reason. There are currently relentless AI crawlers. They’re not like the old web indexers of old that slowly indexed your site, they will pillage it. Before I had the local and cloudflare anti bot protection I was seeing 5-10% CPU from postgres JUST from bot traffic.
The scary thing? When I first set up the block/managed challenge on cloudflare it was blocking >95% of the bot traffic. Today? 30% or so. They’re bypassing it, like it’s not even there.
They are really bad and hard to block. Just an excerpt from the recent log. All different IPs and subnets, reading threads one after the other, random valid UAs. For iphones, various android phones, Windows, Linux. All just pulling article after article down. And that’s with the protection on.
I’ve added a script to my lemmy and piefed that makes them private when the load is high. Can’t scrape what isn’t visible.
They go private daily, and sometimes multiple times a day. A normal user doesn’t notice, only guests can notice. But I haven’t had any scraper related downtime since using the scripts.
True, but what about AI firewalls like Anubis?
I expect they would be the same. If they want to bypass them they will. I also assume every connection cannot have a unique SHA hash since that would mean the server needs to solve it for every connection too. Which would push CPU use beyond what the bots are causing. So I would bet they’d find a way to exploit whatever shortcut is used server side.
Because while these requests come from multiple locations all over the world, I am pretty sure they’re co-ordinated centrally. So if there’s a common hash, or pool of hashes, they would only have to solve it once and then cache it too.
Remember managed challenge was stopping them 6 months ago and now is mostly ineffective. If they want to get around it, they will.
Usually the hash function is something like, here is a random string, give me a prefix for it such that the resulting hash ends in six zeros. Very quick for the server to check (one hash), but lots of work for the requester (about half a million on average). Turn it up to be as much work for the requester as you like, it’s still trivial for the server to verify.
Unfortunately, the level of check that makes it very difficult for mobile phones to pass is still quite easy for some rack in a datacentre. It slows them down in bulk collection, it doesn’t stop them.
Ah, thanks for that. It’s actually a pretty good solution. My suspicion is that they will absorb it though. I mean they’re clearly spending some AI compute to bypass the cloudflare “I’m not a bot” challenge. This would likely be the same or less to bypass, surely?
I’m not sure Cloudflare have actually been explicit about what their test consists of? About half the internet flows through their servers, so they’ll be able to mix up widescale ip ranking, suspicious request patterns, proof-of-work, all sorts.
Like I say, you can turn this up. Find me a prefix that gives more zeros, or solve it many times, whatever. The idea is to make it too expensive for the ai bot farms to do widespread scraping. It doesn’t stop them from spending compute to access one page; it makes it too expensive to access a billion pages.
Tell me you never hosted anything online without saying you never hosted anything online.
Any public facing site will get absolutely hammered by bots and slop agents 24/7.
I know, that public facing sites are hammered, but why the everliving fuck does it have to be Cloudflare?!
Because Cloudflare is very good at at filtering this and it’s free to use for small sites.
Until they decide you are not small enough and demand ransom from you, and or sucks at refunding.
Because Cloudflare can take it. They’ve built a whole business around being able to handle ungodly amounts of traffic so your website stays up. Of course they now try to sell you a million other things but that’s still the core feature to get you on board.
Because it is a big company whose whole business is managing this stuff, you implement and forget.
So is lemmy.world and I have to see this every time I log in.