566
you are viewing a single comment's thread
view the rest of the comments
[-] Corkyskog@sh.itjust.works 11 points 2 months ago

Out of curiosity, how would you word it?

[-] affiliate@lemmy.world 19 points 2 months ago

i would probably word it as something like:

Robots.txt is a document that specifies which parts of a website bots are and are not allowed to visit. While it’s not a legally binding document, it has long been common practice for bots to obey the rules listed in robots.txt.

in that description, i’m trying to keep the accessible tone that they were going for in the article (so i wrote “document” instead of file format/IETF standard), while still trying to focus on the following points:

  • robots.txt is fundamentally a list of rules, not a single line of code
  • robots.txt can allow bots to access certain parts of a website, it doesn’t have to ban bots entirely
  • it’s not legally binding, but it is still customary for bots to follow it

i did also neglect to mention that robots.txt allows you to specify different rules for different bots, but that didn’t seem particularly relevant here.

[-] ma1w4re@lemm.ee 5 points 2 months ago

List of files/pages that a website owner doesn't want bots to crawl. Or something like that.

[-] NiHaDuncan@lemmy.world 9 points 2 months ago* (last edited 2 months ago)

Websites actually just list broad areas, as listing every file/page would be far too verbose for many websites and impossible for any website that has dynamic/user-generated content.

You can view examples by going to most any websites base-url and then adding /robots.txt to the end of it.

For example www.google.com/robots.txt

this post was submitted on 07 Oct 2024
566 points (98.8% liked)

Technology

60016 readers
2773 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 2 years ago
MODERATORS