What robots.txt is and why you need it

In short

robots.txt is a text file in your site's root that tells search robots which sections they may crawl and which to leave alone. It is the first thing a robot reads when it visits your site.

Why you need it

robots.txt keeps robots from wasting effort on junk pages - the cart, account area, technical sections. It also points to your sitemap so search engines find all your pages faster. Without it a robot still crawls the site, just less efficiently.

What it does NOT do

robots.txt does not hide a page from people and does not guarantee it stays out of search results. If other pages link to a blocked page, Google may still show it. For real hiding you need other tools - a password or a noindex meta tag.

Common mistakes

Check how this looks on your site

A free 30-second audit shows whether everything is fine on your site.

Check your site for free

FAQ

Where should robots.txt live?
Strictly in the domain root: site.com/robots.txt. It does not work in subfolders.
How do I check I did not block too much?
The free SEO Nerve audit checks robots.txt and warns you if important sections or resources are blocked by mistake.