News for hackers. Stuff that matters.
Re:AI companies cause most of traffic on forums by kmoser on Monday December 30, 2024 @10:22PM (#42556117)
My cheap and dirty way of dealing with bots like that is to block any IP address that accesses any URLs in robots.txt. It's not a perfect strategy but it gives me pretty good results given the simplicity to implement.
Re:AI companies cause most of traffic on forums by Capricorn2481 on Tuesday December 31, 2024 @03:12PM (#42561452)
I don't understand this. You don't have routes your users might need in robots.txt? This article is about bots accessing resources that other might use.
Re:AI companies cause most of traffic on forums by IncreasePosts on Tuesday December 31, 2024 @04:44PM (#42562087)
It seems better to put fake honeypot urls in robots.txt, and block any up that accesses those.
Re:AI companies cause most of traffic on forums by Capricorn2481 on Tuesday December 31, 2024 @05:32PM (#42562347)
Ah I see
Re:AI companies cause most of traffic on forums by trod1234 on Wednesday January 01, 2025 @06:50PM (#42570290)
Blocking will never work.

You need to impose cost. Set up QoS buckets, slow suspect connections down dramatically (almost to the point of timeout).

Re:AI companies cause most of traffic on forums by Beijinger on Tuesday December 31, 2024 @08:19PM (#42563185)
How can I implement this?
Re:AI companies cause most of traffic on forums by aorth on Wednesday January 01, 2025 @12:55AM (#42564237)
Another related idea: use fail2ban to monitor the server access logs. There is one filter that will ban hosts that request non-existent URLs like WordPress login and other PHP files. If your server is not hosting PHP at all it's an obvious sign that the requests are from bots that are probing maliciously.
Re:AI companies cause most of traffic on forums by kmoser on Wednesday January 01, 2025 @04:16PM (#42569373)
Too many ways to list here, and implementation details will depend on your hosting environment and other requirements. But my quick-and-dirty trick involves a single URL which, when visited, runs a script which appends "deny from foo" (where foo is the naughty IP address) to my .htaccess file. The URL in question is not publicly listed, so nobody will accidentally stumble upon it and accidentally ban themselves. It's also specifically disallowed in robots.txt, so in theory it will only be visited by bad bots.