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
- 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.
- 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.
- 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
Robots.txt Generator
Free robots.txt generator. Build a robots.txt file for search engines and AI crawlers, then copy it to the root of your site.
Search Engine Spider Simulator
See a page the way a search engine crawler reads it: text, headings, links and what's hidden from it.
Meta Tag Analyzer
Check any page's title, description, headings, canonical, robots and social tags, with plain-English fixes.
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.