Skip to main content

What is robots.txt, and what does it mean for AI engines?

The Tasadr team · ·4 min read

robots.txt is a text file at the root of your site that tells crawlers which pages they may read and which to leave. One wrong line can shut your whole site out of Google and ChatGPT together. It does not take a page out of Google's results: that is what the noindex rule is for.

Also known as robots.txt · robots file · robots.txt file · ملف الروبوتات

On this page (8)
  1. What is the robots.txt file?

    It is a plain text file placed at your site's root, meaning at the address that ends in robots.txt directly after your domain. It tells crawlers which URLs they may visit. Google describes it as used mainly to avoid overloading your site with requests, in other words to manage crawl traffic.

    The site owner writes groups in it. Each group starts with a User-agent line naming the crawler, then Allow or Disallow lines naming the paths permitted or forbidden. So you can address one crawler or all of them.

  2. Does robots.txt hide a page from Google's results?

    No. Google says the file is not a mechanism for keeping a page out of Google. To keep a page out of results, use a noindex rule or password protection. A page blocked by the file can still appear in results without a description, so someone who blocks a sensitive page with this file alone protects it less than they think.

  3. What does robots.txt mean for AI crawlers?

    Each AI engine has crawlers with names of their own. OpenAI says disallowing OAI-SearchBot keeps your site out of ChatGPT's search answers, and that GPTBot crawls content that may be used to train its models, so disallowing it signals that your content should not be used for that. Perplexity recommends allowing PerplexityBot so your site appears in its results.

    So the decision is separate for each crawler: you can allow the search crawler and block the training crawler. All the names and how to write their rules are in how to write a robots.txt that allows them and in AI crawler user agents.

  4. An Arab-market example: a perfume store that has just launched

    An illustrative example. A fictional perfume store in Riyadh, oud-house.example. During testing the developer had written a Disallow line with a single slash that blocks every page for every crawler. The site was launched and everyone forgot the line.

    The site works in the browser as if nothing were wrong, but Google cannot read its pages, nor can ChatGPT's or Perplexity's crawlers, so there is no citation and no ranking. The store finds out weeks later, when it asks why nobody finds it.

  5. What should you do about your robots.txt?

    Open it now. It is a public file you see by typing your site's address followed by robots.txt, and you check three things in it.

    • Is there a Disallow with a lone slash that blocks the whole site?
    • Does it allow the search crawlers you want to cite you, and have you chosen what to do about training crawlers?
    • Does it link your sitemap, as in sitemap?
    • Tasadr's readiness check tests your file against the eight engines, so you see which crawler is blocked.

Sources

  1. Introduction to robots.txt · Google Search Central ·
  2. Overview of OpenAI Crawlers · OpenAI
  3. Perplexity Crawlers · Perplexity

Frequently asked questions

Should I block every AI crawler from my site?

If you block search crawlers such as OAI-SearchBot, you leave ChatGPT's search answers. If you block only training crawlers, you stay in search. The choice is yours, and the method is in which crawler should you allow, and which block?.

Can I control what AI quotes about me?

You control what a crawler reads, with this file and with snippet rules on your pages, but not what the engine writes about you. What you can do is write the truth as clear text and allow it to be read.

What if my site has no robots.txt?

Crawlers generally assume they may read everything, and having no file is not an error. But having one lets you manage what is crawled and point to your sitemap.