# Is your robots.txt blocking ChatGPT and Claude? Check it and generate llms.txt in one run

> Source: <https://dev.to/kerm_labs/is-your-robotstxt-blocking-chatgpt-and-claude-check-it-and-generate-llmstxt-in-one-run-1g2l>
> Published: 2026-12-01 04:35:53+00:00

**Key takeaway:** Audit robots.txt per bot rather than with a blanket rule: blocking training bots like GPTBot or ClaudeBot is a choice, but blocking search bots like OAI-SearchBot or Claude-SearchBot keeps AI search from citing the site.

A lot of sites block AI crawlers without meaning to. A copied robots.txt, a CDN "block bots" toggle or an old `Disallow: /` for `*` is enough to keep your pages out of ChatGPT search, Claude and Perplexity answers.

There are two different kinds of AI bots, and most people only know one:

| Bot | Company | What it is for | 
|---|---|---|
| GPTBot | OpenAI | Training data | 
| OAI-SearchBot | OpenAI | ChatGPT search results | 
| ChatGPT-User | OpenAI | Fetching a page a user asked about | 
| ClaudeBot | Anthropic | Training data | 
| Claude-SearchBot | Anthropic | Search results in Claude | 
| PerplexityBot | Perplexity | Search index | 
| Google-Extended |  | Gemini training (not Google Search) | 

Blocking training bots is a fair choice. Blocking the search bots usually is not: it means AI search cannot cite you.

I built an audit that reads your robots.txt and tells you, for 15 AI crawlers, which are allowed and which are blocked. If search bots are blocked, it suggests the robots.txt lines to fix it.

In the same run it also:

`/llms.txt`
Try it in the browser: [https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/ai-crawler-access-checker](https://apify.com/bigkerm/website-health-ai-readiness-audit/examples/ai-crawler-access-checker)

**Only need the llms.txt?** There is also a dedicated [llms.txt Generator](https://apify.com/bigkerm/llms-txt-generator): enter a site, get a ready-to-upload llms.txt (and optional llms-full.txt) built from your real pages, titles and descriptions. $0.05 per site, and sites it cannot read are not charged.

``` python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("bigkerm/website-health-ai-readiness-audit").call(
    run_input={"startUrls": ["https://example.com"], "maxPagesPerSite": 25}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    if item["type"] == "site":
        print(item["url"], item.get("score"), item.get("aiBotsBlocked"), "AI bots blocked")
        for issue in item.get("issues") or []:
            print(" ", issue["severity"], issue["code"], "-", issue["fix"])
```

The llms.txt draft is saved as `LLMS-<host>.txt` in the run's key-value store.

$0.02 per site plus $0.01 per page. A 25-page audit is about $0.27. Sites that are down or block the crawler are not charged. For only the robots.txt, AI crawler and llms.txt checks, set `maxPagesPerSite` to 1: $0.03 per site.

Save the input as a task and add an Apify Schedule. From the second run on, the report shows only what changed: new issues, fixed issues, new broken links, and AI bot rules that changed.
