What is robots.txt?

Definition

Robots.txt is a text file at the root of a website that tells search engine crawlers which parts of the site they may or may not crawl.

It lives at yourdomain.com/robots.txt. It's useful for keeping crawlers out of admin areas, internal search results and endless filter combinations.

It doesn't hide pages from Google

Blocking a page in robots.txt stops crawling, not indexing. If other sites link to it, the URL can still appear in results. Use a noindex tag to keep a page out of search.

A single wrong line, like Disallow: /, can block your whole site. It's one of the first things to check after a website launch.

Want help with this?Search Engine Optimization (SEO)

Robots.txt: common questions

Didn't find your answer? Talk to Suresh or send an email.

  • It's not required, but it's good practice, even if it only allows everything and points to your sitemap.

  • You can disallow specific AI user agents, such as GPTBot. Reputable crawlers respect it; others may not.

  • No. Google needs them to render and understand your pages.

  • Google Search Console shows the robots.txt Google has fetched and any errors in it.

  • It blocks crawlers from the entire site. It's often left behind from a staging site, and it's a common cause of sudden traffic drops.

Let's get your brand growing in no time.