this post was submitted on 18 Aug 2024
74 points (76.4% liked)

Privacy

31874 readers
257 users here now

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

Related communities

Chat rooms

much thanks to @gary_host_laptop for the logo design :)

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] nullPointer@programming.dev 20 points 2 months ago (1 children)

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.

[–] dgriffith@aussie.zone 9 points 2 months ago (1 children)

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.

[–] doodledup@lemmy.world 2 points 2 months ago (3 children)

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

[–] Oha@lemmy.ohaa.xyz 8 points 2 months ago (1 children)

Nope. Search engines should follow the robots.txt

[–] doodledup@lemmy.world -2 points 2 months ago (1 children)

You misunderstand. Sometimes you want your public website to be indexed by search engines but not scraped for the next LLM model. If you disallow scraping alltogether, then you won't be indexed on the internet. That can be a problem.

[–] Oha@lemmy.ohaa.xyz 7 points 2 months ago

I know that. Thats why I dont ban everyone but only those who dont follow the rules inside my robots.txt. All "sane" search engine crawlers should follow those so its no problem

[–] mox@lemmy.sdf.org 5 points 2 months ago* (last edited 2 months ago)

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.

[–] JackbyDev@programming.dev 2 points 2 months ago

Not if they obeyed the rules