Glossary

robots.txt

robots.txt is a plain-text file at the root of a website that tells crawlers, including AI crawlers, which parts of the site they may access.

Also known as: Robots Exclusion Protocol, robots file

robots.txt is a plain-text file at the root of a website (for example, yoursite.in/robots.txt) that tells crawlers, including AI crawlers, which parts of the site they may access. Each group of rules names a crawler by its user-agent, such as Googlebot or OAI-SearchBot, and lists the paths it is allowed or not allowed to fetch.

The rules follow the Robots Exclusion Protocol, first proposed in 1994 and published by the IETF as RFC 9309. The RFC says the file must be named “/robots.txt” in the top-level path of the site, and it states plainly that these rules “are not a form of access authorization”. They are requests that well-behaved crawlers choose to honour.

Why it matters for an Indian business

Your robots.txt quietly decides which bots can read your site. Two common problems show up on small-business websites:

  • Blocking too much. A developer adds “Disallow: /” while the site is being made, and nobody removes it at launch. Or a security plugin blocks every bot it doesn’t recognise, including AI search crawlers.
  • Not deciding at all. Some AI companies run separate crawlers for search and for model training (see AI crawler). A short, deliberate robots.txt lets you choose, for example, to allow a search crawler while declining a training crawler.

Google’s introduction to robots.txt says the file is used mainly to avoid overloading your site with requests, and that it is “not a mechanism for keeping a web page out of Google”. To keep a page out of search, Google points to noindex or password protection instead.

An example

Say a D2C clothing brand in Jaipur runs its shop on a hosted platform. The owner wants AI search tools to be able to read product and policy pages, but not to use the site for model training. A simple robots.txt could allow the general search crawlers, allow OAI-SearchBot and PerplexityBot, disallow GPTBot and ClaudeBot, add a line for the Google-Extended token, and include a “Sitemap:” line pointing to the sitemap. These are choices, not settings that fit every business, and the owner can change them later.

What to watch for

  • It isn’t security. Google notes that robots.txt can’t enforce crawler behaviour; reputable crawlers obey it, others might not. Never rely on it to hide private files such as invoices or customer lists.
  • One file per host. Rules for www.example.in don’t cover shop.example.in.
  • Small mistakes have big effects. A stray slash can block a whole site. Recheck after any website change.

Our free website check reads your robots.txt as one of nine technical signals. It doesn’t measure whether AI assistants actually cite you.

An AI crawler is the kind of bot these rules address. Google-Extended is a special robots.txt token for Google’s AI uses. A sitemap.xml lists your pages, and llms.txt is a separate, proposed guide for AI systems. Our AI visibility service includes a robots.txt that sets out which search and AI crawlers may read your site.

Sources

  1. IETF: RFC 9309, Robots Exclusion Protocol
  2. Google Search Central: Introduction to robots.txt