Wirebook

Wirebook › Glossary › robots.txt

What is robots.txt?

In one sentence: A small text file at the top of a website that tells robots which parts they should stay out of. Good bots obey it; it isn't a lock.

A little more

robots.txt lives at the very top of a website, for example example.com/robots.txt. Lines like Disallow: /private ask robots to keep out of those pages, and a Sitemap: line points them to a list of every page worth reading.

Polite crawlers, like the big search engines, always read it first and obey it. But it is only a request: a rude bot can ignore it. Anything truly private needs a real lock, such as a password, not just a sign.

See it in action

  1. 17What are bots doing on the web?Be a crawler robot on a tiny pretend web: read each site's robots.txt sign, follow links, build a search index and see what happens if you ignore the rules or rush.7 min · interactive

Related words

← All 146 words