robots.txt and AI: is your website blocking ChatGPT?
One line in a text file can shut your business out of AI answers. Checking takes a minute.
- No sign-up or payment card
- Result in about a minute
- 3 fix instructions for free
robots.txt is a text file in the root of a website that tells search engine and AI crawlers what they may read. You can find yours by typing yourcompany.com/robots.txt into your browser.
Which crawlers to let through
| Crawler | Service | What it is used for |
|---|---|---|
| OAI-SearchBot | ChatGPT | ChatGPT search and source links. |
| ChatGPT-User | ChatGPT | Fetching the page when a user asks about it. |
| GPTBot | OpenAI | Training data for the models. |
| ClaudeBot | Claude | Anthropic's crawler. |
| PerplexityBot | Perplexity | Search and source links. |
| Google-Extended | Gemini | Permission for Google's AI use. |
How to recognise a block
A block looks like this. The first bans one crawler, the second bans all:
User-agent: GPTBot Disallow: / User-agent: * Disallow: /
If you find a section like this in your file, AI is not allowed to read your website. The second one bans Google too.
A working robots.txt for a business website
User-agent: * Allow: / Sitemap: https://yourcompany.com/sitemap.xml
This allows all crawlers and states your sitemap address. Replace the address with your own domain.
The block may be elsewhere too
- Template setting: some website builders and WordPress plugins block AI crawlers by default.
- Firewall or bot protection: for example Cloudflare's ”Block AI bots” setting blocks crawlers even if robots.txt allows them.
- Page-level noindex: a
noindexin the page's source code hides the page from search engines.
The inspection checks the robots.txt file, AI crawler access and noindex tags in one go.
FAQ
Should I allow GPTBot?
That's your choice. GPTBot collects training data, and OAI-SearchBot brings your website into ChatGPT's search. If you want to appear in the answers, allow at least OAI-SearchBot and ChatGPT-User.
What if my website has no robots.txt file?
Then all crawlers may read everything, so there is no block. It's still worth adding the file so that it contains your sitemap address.
How quickly does a change take effect?
Crawlers usually re-fetch robots.txt within a day. Visibility in the answers changes more slowly, over weeks.
Read also
All guidesInspect your website now
You get a score, a verdict and fix instructions for the three most important issues for free.