23 points

robots.txt does not work. I don’t think it ever has - it’s an honour system with no penalty for ignoring it.

I have a few low traffic sites hosted at home, and when a crawler takes an interest they can totally flood my connection. I’m using cloudflare and being incredibly aggressive with my filtering but so many bots are ignoring robots.txt as well as lying about who they are with humanesque UAs that it’s having a real impact on my ability to provide the sites for humans.

Over the past year it’s got around ten times worse. I woke up this morning to find my connection at a crawl and on checking the logs, AmazonBot has been hitting one site 12000 times an hour, and that’s one of the more well-behaved bots. But there’s thousands and thousands of them.

permalink
report
reply
23 points
1 point

When I changed my domain name I set this to on and then wondered why I couldn’t log into the Nextcloud desktop app.

permalink
report
parent
reply
15 points

Wow. A lot of cynicism here. The AI bots are (currently) honoring robots.txt so this is an easy way to say go away. Honeypot urls can be a second line of defense as well as blocking published IP ranges. They’re no different than other bots that have existed for years.

permalink
report
reply
9 points
*

In my experience, the AI bots are absolutely not honoring robots.txt - and there are literally hundreds of unique ones. Everyone and their dog has unleashed AI/LLM harvesters over the past year without much thought to the impact to low bandwidth sites.

Many of them aren’t even identifying themselves as AI bots, but faking human user-agents.

permalink
report
parent
reply
26 points

This article lies to the reader, so it earns a -1 from me.

permalink
report
reply
-2 points
*

Lies, as in that it’s not really “blocking” but a mere unenforceable request? If you meant something else could you please point it out?

permalink
report
parent
reply
37 points

That is what they meant, yes. The title promises a block, completely preventing crawlers from accessing the site. That is not what is delivered.

permalink
report
parent
reply
0 points

Is it a lie or a simplification for beginners?

permalink
report
parent
reply
19 points

robots.txt will not block a bad bot, but you can use it to lure the bad bots into a “bot-trap” so you can ban them in an automated fashion.

permalink
report
reply
9 points

I’m guessing something like:

Robots.txt: Do not index this particular area.

Main page: invisible link to particular area at top of page, with alt text of “don’t follow this, it’s just a bot trap” for screen readers and such.

Result: any access to said particular area equals insta-ban for that IP. Maybe just for 24 hours so nosy humans can get back to enjoying your site.

permalink
report
parent
reply
2 points

Problem is that you’re also blocking search engines to index your site, no?

permalink
report
parent
reply
5 points
*

Robots.txt: Do not index this particular area.

Problem is that you’re also blocking search engines to index your site, no?

No. That’s why they wrote “this particular area”.

The point is to have an area of the site that serves no purpose other than to catch bots that ignore the rules in robots.txt. Legit search engine indexers will respect directives in robots.txt to avoid that area; they will still index everything else. Bad bots will ignore the directives, index the forbidden area anyway, and by doing so, reveal themselves in the server logs.

That’s the trap, aka honeypot.

permalink
report
parent
reply
2 points

Not if they obeyed the rules

permalink
report
parent
reply
8 points

Nope. Search engines should follow the robots.txt

permalink
report
parent
reply

Privacy

!privacy@lemmy.ml

Create post

A place to discuss privacy and freedom in the digital world.

Privacy has become a very important issue in modern society, with companies and governments constantly abusing their power, more and more people are waking up to the importance of digital privacy.

In this community everyone is welcome to post links and discuss topics related to privacy.

Some Rules

  • Posting a link to a website containing tracking isn’t great, if contents of the website are behind a paywall maybe copy them into the post
  • Don’t promote proprietary software
  • Try to keep things on topic
  • If you have a question, please try searching for previous discussions, maybe it has already been answered
  • Reposts are fine, but should have at least a couple of weeks in between so that the post can reach a new audience
  • Be nice :)

Related communities

Chat rooms

much thanks to @gary_host_laptop for the logo design :)

Community stats

  • 3.9K

    Monthly active users

  • 3K

    Posts

  • 78K

    Comments