Top
Best
New

Posted by blakesterz 3 hours ago

University libraries are being swarmed by AI bots, putting public access at risk(www.cbc.ca)
85 points | 41 comments
londons_explore 3 minutes ago|
Behind nearly every AI bot is some human who will see real benefit from scraping my site.

I just make sure all my pages are super lightweight to cache and serve from cloudflare and let the bots do what they like.

If I put something on the internet for all to see, I want bots to be able to see it too.

I've been on the other side of bot blocks - when I ask my LLM to buy me X and it comes back and says the only place it could buy from is some Bulgarian seller because everywhere else has anti-bot scripts, I make sure to give that Bulgarian site my business.

Bender 3 hours ago||
LLM bots are the easiest to spot. Rate limit them to 16kb/s and 1 request every 5 seconds. Give them a friendly multilingual WCAG status 429 page that says to slow down or status 444 and drop them into nftables ipsets if they continue to be aggressive. Ask your favorite LLM how to set this up. If your LLM gets session paused, ask Gemini or Grok. Tell it if you are behind a CDN. Enable logging of ssl curves, ciphers, etc... Show your LLM some examples from your access logs.
dmtroyer 3 minutes ago||
I think you overestimate many organizations ability to implement this type of rate-limiting.
sixtyj 2 hours ago|||
LLM bots make only a part of traffic and really easy to set up (and I think this will eventually throttled by OAI or Anthropic themselves).

But there are bad actors - bots that try every possible urls and traversals and cross scripting and so on… I see it in our access logs. This cannot be solved otherwise than some greylisting/blacklisting on ISP level. E.g. this is so huge that we have started to block all Chinese inbound traffic. I am sorry for that because Deepseek and other good actors are probably blocked as well but IP rotation made it impossible to filter bad ones only… (and I suppose that DS uses EU or US addresses as well so they shouldn’t be blocked in full).

Bender 2 hours ago||
eventually throttled by OAI or Anthropic themselves

Indeed, they use an edge SSL Bump proxy that is already bandwidth limited and has to speak real HTTPS.

I do not focus too much on IP addresses but rather the behavior that they can not hide. LLM's can help you spot this behavior. Good LLM vs. Bad LLM. Gemini knows a few tricks but you have to coax it out of them. It seems to not want to overload people with information. That said there are some good IP lists that can be used in blackhole routing tables, nginx geo tables, etc...

sixtyj 1 hour ago||
> That said there are some good IP lists that can be used in blackhole routing tables, nginx geo tables, etc...

I focus on content on our site so blocking part of internet with wordfence was brute but as life has only few thousands of weeks, it was the least I wanted to think about :).

Would you mind to share a source of good IP lists pls?

Bender 1 hour ago||
FireHol [1] and lists_vpn [2] are useful for nginx geo files. Be sure to use iprange [3] to aggregate cidr ranges, IP's or lists get big fast The IP ranges can be used in conjunction with rate limiting and/or firewall ipsets and/or blackhole routing tables depending on what type of abuse your site is receiving.

LLM's can help you implement iprange into IP list building scripts to keep the lists smaller and more efficient.

[1] - https://github.com/firehol/blocklist-ipsets/

[2] - https://github.com/X4BNet/lists_vpn

[3] - https://github.com/firehol/iprange

eatonphil 2 hours ago||
I get tens of thousands of IPs making 1 or 2 requests against pages on The Consensus (job search, code viewing, etc.). They're not super expensive pages. But I don't want to deal with the bot traffic (mostly because it messes up view counts I use to sell sponsorships). But then if I require an account (even a free one), valid readership is also going to drop with the new friction.

I could build something more complex to discover the patterns, or use Turnstile maybe. I'm not really sure at the moment.

EvanAnderson 1 hour ago|||
I mind a public access website for a government entity and this is exactly the pattern I see. US residential IPs make a couple of requests then never come back.

The bots may have layer 7 signatures that make them "easy" to block, but I'm dealing with COTS software with no ability to make changes to the stack. Even if I could by the time they're blocked the work is done and they're never coming back anyway.

I don't think I'm seeing the LLM bots in the scraping on this particular site. This site's data is highly sought-after by data brokers, legal services advertising, debt collectors, etc. I tend to think I'm seeing homespun scrapers. This site has been up for 20+ years and the scrapers seem to be well-adapted to using the HTML as an ad-hoc API for the data. The difference in the last few years has been the availability of vast numbers of residential proxies to mask the traffic.

Bender 2 hours ago||||
Bots give all the information required to block or rate limit them including those that try to look like a real browser (some things they just can't hide, even residential proxies via behavior.). Ask the LLM how to change your log format to gather all the fields your web server can see. Share the resulting updated logs with your favorite LLM. Ask it for generalized rules to block the bots whilst permitting real browsers. A tiny percentage of bots will still get through but the load becomes much more manageable. Tell your LLM you also wish to spot fake chrome via CH and bots via ssl curves. No need for JA3. Nginx can expose the important aspects of GREASE.
eatonphil 2 hours ago||
I know you can't be super specific because you'd just be enabling the companies who get around this (who, funnily, I also index on The Consensus), but I have spent a few rounds on this over the months and haven't yet been able to cut them out.

Some of the things that seemed like they'd cut out lazier bots/scripters involved browser fingerprinting that I didn't want to yet have to deal with disclosures or approval for. But also even some of these browser fingerprinting things were disable-able via flags when you start up Chrome or whatever.

I think what would work overall is to track all requests for a pattern of page access and start blocking other systems that are part of that pattern. But that also wouldn't account for like... landing on the front page of HN, which happens not infrequently.

All of this is aside from per-IP or per-user proof of work. Whenever someone lands on a more expensive page I make the browser do proof of work and store it in a cookie, unique to the IP or user. (Signed in users don't have to do proof of work). This is a perfect solution except for the IP rotation I'm talking about above.

edit: ah also, I don't do SSL termination so can't spot the SSL configuration. But Cloudflare does. And all of this is even after Cloudflare paid bot traffic systems are in place.

edit 2:

> tiny percentage of bots will still get through but the load becomes much more manageable.

The load is not the problem. It's only at most a few bot hits per second. I'm just having trouble removing bot attribution from view counts.

twosdai 1 hour ago|||
You can consider adding in a small amount of js that tracks if a person actually engages with the content before "counting" their view. Eg, did they stay on the page for more than 15 seconds.

Youtube wont count a view until you watch for some percentage of the video. Maybe consider something similar.

eatonphil 1 hour ago||
Yeah I do have the JavaScript side in place, was just loathe to start totally owning this data instead of Fathom.
Bender 2 hours ago|||
Aside from the things I suggested asking LLM's (they will take one down some fun rabbit holes) there are more crude methods such as forcing brotli or zstd on specific URLs accepting that older versions of Safari pre-2026 will get gibberish if forcing zstd. It's rude and paternal but botters can be rude and childish so these are the games we play.

I love sharing methods with the botters so they step up their game, thus forcing me to step up my game. Everything I use does not require javascript, cookies or authentication. I save authentication as a last resort which means I lost that round.

Botters are welcome and encouraged to test their setup on my silly hobby sites. Here's one of them: [1]

[1] - https://altchan.org/sh/33

P.S. These are the simplest crude methods for the obvious bots, let your LLM to help spot the fakers. pre-2026 Safari will not work. Do not visit image boards with unpatched browsers.

ljlolel 2 hours ago|||
seems like open web is dead which is sad

i heard hcaptcha is good

j45 2 hours ago||
Static web pages might be back for a bit while this gets figured out
blakesterz 2 hours ago||
What I still don't understand is who is doing it? I assume it's not the big companies like OpenAI or Google or Anthropic, right? So there are a bunch of small things out there doing the scraping and then they sell it to the big places? Or are these just smaller AI models doing the scraping and using it for themselves? Is there an underground ecosystem where people buy and sell this stuff? I understand why it's valuable to the AI companies I'm curious about how all this work, the economics of it all.
qingcharles 2 hours ago||
Can't speak for everyone. I'm very gently scraping a lot of libraries for public domain periodical scans. The scans often exist nowhere else, or not in the same quality. Sometimes I find a certain library has perhaps the only known remaining intact copy of a periodical or a specific page.

The problem with the libraries is that all these scans are behind walls, so while the texts are public domain nobody can easily access them. I'm trying to liberate them and re-upload them outside the walls.

Until recently a lot of libraries would allow you to remotely sign up for a library card, but in the last 12 months almost all of them have reverted to having to bring ID in person to the library to validate your account, which puts the brakes on things.

TazeTSchnitzel 2 hours ago|||
We're currently in the middle of an AI goldrush. There are probably hundreds of companies trying to do model pretraining. Anthropic and OpenAI and so on probably care about optics and implementing their crawlers properly. But there will be many firms few of us have heard of. I would guess some of them are Chinese, for example.
oasisbob 1 hour ago|||
Some people making money off it, it's a whole value chain:

- Residential proxy providers

- Hosting providers with IP-rotation as a service.

- Hosting providers who chase AI training customers, DigitalOcean is a big one

- Clouds like AWS with headless browsing as a service

- Platforms like Replit whose value proposition starts to fall apart if clients can't make requests from their platform.

- Companies like meta, whose existing bots are now obviously completely unchained from their advertised responsibilities

joe_the_user 12 minutes ago||
As I understand, most large companies now are relying on a variety of contractors and the constractors try to vacuum up everything so they have the maximum to sell to different companies.

This is the way for companies these days to avoid legal responsibility for their actions - hire a contractor on a "don't ask, don't tell" basis.

Of course such things are extra-ironic in the context of US companies complaining about having their condensed by Chinese companies.

Edit: I read this in one article a while back. I can't links either corroborating or refuting it now and I think that's again because whatever the companies do, they want to keep it hush-hush.

engineer_xyz 35 minutes ago||
Same thing on the tiny scale. My side project site gets maybe 2 real visitors a month and a steady stream of 0-second "visits" from US datacenters. For a library with real users that load must be brutal.
sneak 18 minutes ago||
I’m in the process of developing a WAF reverse proxy designed for the smallweb and selfhosters to address precisely this.

https://git.eeqj.de/sneak/smallwebwaf

It’s alpha but it should be ready for real-world testing in the next couple of days. I’m going to drop it in front of my Gitea and home-grown api servers.

I’m super tired of Anubis spamming me with furry fetish art on its pointless interstitials 20 times a day. As someone pointed out in another comment, LLM scraper bots are super easy to detect with basic heuristics. PoW and session cookies and an interstitial are massive overkill and annoying spam.

jdw64 1 hour ago||
These days, AI attacks are indiscriminately targeting personal websites, and they've become far too severe. They even come in disguised through referrer spam[1], so they're tricky to block. In my opinion, I suspect such scraped data is being used to classify and train AI models.

[1]https://www.makonea.com/en-US/casual/scraping-bots-are-destr...

talon8635 15 seconds ago||
University networks in general. Don't ask me how I know.
tacocataco 2 hours ago||
I wonder if Internet 2: The sequel is infested as well.

https://en.wikipedia.org/wiki/Internet2

pfdietz 1 hour ago||
So these bots are going to get the Aaron Swartz treatment, right?

RIGHT?

benjismith 1 hour ago|
Get with the times, university libraries.

"Open Access" means supporting users. Now your users are also bots, and the people that deploy those bots. You need to be able to serve those users too.

iberator 43 minutes ago|
Bots are running to make cash for some evil companies. The library is for knowledge - not profit ir commerciaisation.
More comments...