Glossary

robots.txt

A file that suggests which parts of a site crawlers may fetch.

robots.txt in plain English

robots.txt is a plain text file at the root of your site, such as example.co.uk/robots.txt, that tells crawlers which parts of the site they may fetch. It controls crawling, not indexing. Google's robots.txt introduction explains that a blocked page can still be indexed if other pages link to it, just without its content.

How to check robots.txt on your site

Type your domain followed by /robots.txt into a browser to read your file. Look for any "Disallow: /" line under "User-agent: *", which blocks everything. Search Console's robots.txt report shows the version Google last fetched and any errors. If you're unsure what a rule does, ask whoever built the site before changing it.

A worked example

A new ecommerce site launches, but after a month nothing shows in Google. The robots.txt still blocks everything from the staging setup. Removing the rule and submitting the sitemap in Search Console starts the pages appearing within days.

Where it usually goes wrong

Why a small site should care

One wrong line can hide a whole website from search. A common example is a developer adding "Disallow: /" while building a site and forgetting to remove it at launch. On the other hand, a sensible robots.txt can keep crawlers out of areas such as internal search results or basket pages.

Connected technical terms

Start with a free SEO audit

Your whole site, audited free. No card and no obligation.