r/linuxadmin • u/IRIX_Raion • Sep 19 '25
PSA: if your web application is getting much higher traffic than you think it should be be aware about AI trainers
These didn't really bother me up until recently where they basically started hammering on the server for over 780 CPU seconds on average for a small size forum.
I don't understand how they can get away with doing this on small scale sites. The only reason that this sort of thing wouldn't have killed it is because I heavily cache my forum. I don't understand how they can get away with doing this on sites that don't have people who have been doing this for years and know how to adjust things properly. I went from that and burning out one of my chorus constantly to 60 CPU seconds once I blocked their IP ranges and did some other adjustments to reduce CPU on the memcached service.
49
u/binaryflow Sep 19 '25
I moved our sites behind Cloudflare and turned on their AI blocking. It made a huge difference. The AI bots will consume every cpu cycle they can find and think nothing of it.
57
u/elprophet Sep 19 '25
They do not care about you, your forums, your users, or literally anything.
15
u/V2UgYXJlIG5vdCBJ Sep 19 '25
Look into AI poison and other weapons. https://blog.cloudflare.com/ai-labyrinth/
12
u/bobj33 Sep 19 '25 edited Sep 20 '25
Who is going to stop them? These are huge companies writing bots to get material to train their AI algorithms. They don't care about whether your website remains usable, they only care about getting your content to train on.
AI web crawlers are destroying websites in their never-ending hunger for any and all content
https://www.theregister.com/2025/08/29/ai_web_crawlers_are_destroying/
Anthropic downloaded the LibGen Library Genesis torrents to train on. All of this data is copyrighted. They just lost a lawsuit and had to pay $1.5 billion.
They could have bought these books legally and trained on them but they don't care until they got caught and the publishers have enough money for lawsuits.
https://www.cbsnews.com/news/anthropic-copyright-lawsuit-class-action-settlement-authors-1-5-billion/
If you don't have enough money to determine who is abusing your site and money for lawyers then you've got to do what you are doing and block ranges etc. I've seen a lot of people just block entires countries because they aren't doing business with anyone from those countries.
3
u/ITaggie Sep 20 '25
You're going to need some sort of WAF and an Analytics Dashboard to keep up with this, since you don't want to use CloudFlare. I respect your reasoning, but that decision is going to make this a far more active effort than it otherwise would be-- just wanted to be clear with you.
The most reliable method I've had to mitigating these types of attacks is by blocking the "problem ASNs" that pop up on the dashboard. 90% of the time these will be owned by public cloud providers and shouldn't affect normal residential/mobile internet traffic.
Here is my current list of "completely block" ASNs, though this is very far from comprehensive and excludes all our WAF middle-layers to filter out other malicious or bot traffic:
2
u/Cladex Sep 19 '25
Do they use a certain agent string ?
2
u/TomaCzar Sep 19 '25
I remember this exact same discussion when search engine web crawlers were a concern. Admins would actually tell indexers not to crawl their domain to save on bandwidth/resources.
There'll be a period of adjustment during which compromises will be made (already showing up in the comments here). Eventually, it will all be normalized and accounted for. Bad actors will fall in line (more likely the low hanging fruit of just any ol' website on the 'net will have been consumed, regurgitated, and consumed again so many times that there's just no value in the content) while hardware and software optimization work to make the issue moot.
1
u/archontwo Sep 20 '25
Shouldn't fail2ban and nginx rate limiting work to
dissuadebot farms?2
u/serverhorror Sep 20 '25 edited Sep 20 '25
The good news, this sets a nice precedent that web scraping is now OK, regardless of terms of service.
1
u/jakecovert Sep 19 '25
Safeline open source WAF
1
u/Poesximah Sep 22 '25
This has become a norm but i usually implement f2b, rate limiting, caching to reduce CPU per request and clouflares WAF( if its in clouflare).