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)
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.
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.
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.
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.
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
- Introduction to robots.txt · Google Search Central ·
- Overview of OpenAI Crawlers · OpenAI
- Perplexity Crawlers · Perplexity
Frequently asked questions
Should I block every AI crawler from my site?
Can I control what AI quotes about me?
What if my site has no robots.txt?
Try Tasadr free for 7 days
Add your site, write up to 10 questions your customers ask, and see who leads the answer today. No credit card needed.
Start your free trial