What Is Robots.txt?

Robots.txt is a text file at the root of a site that lists crawl rules for bots, including paths you ask them not to fetch. It controls crawling, not indexing.

A Disallow line is not a noindex method. If Google cannot crawl the page, it may never see a noindex tag, and a blocked URL can still be indexed without a snippet.

Part of the SEO glossary

How a local business uses Robots.txt

  1. Publish the file at the root. Put the crawl rules in /robots.txt on the host, with the user-agent groups and the paths you want fetched or skipped.
  2. Do not use it as noindex. To keep a page out of the index, allow the crawl and add a noindex tag on the page.
  3. Draft, then read a page. The robots generator drafts the crawl rules. The spider simulator and the meta analyzer read a page you still want indexed, and they flag a noindex tag if the page sends one.

Free tools

Questions

Can Robots.txt keep a page out of Google's index?

Not reliably. Robots.txt is a set of crawl rules, not a noindex method. A blocked page can still be indexed without a snippet.

Where does Robots.txt live on a site?

At the root of the host, as /robots.txt. A copy in a subfolder is not the file crawlers request first.

Related terms