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

2026-12-01来源 dev.toEnglish

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 Google 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.

Check yours

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:

  • drafts an llms.txt file from your real pages (llmstxt.org format), ready to edit and upload as /llms.txt
  • crawls your pages for technical SEO issues and gives a 0-100 score with a ranked fix list
  • checks every link and lists verified broken ones (404, 410, dead domains), with blocked or slow links kept separate so you do not chase false alarms
  • checks SSL expiry, DNS email records (SPF, DMARC) and domain expiry

Try it in the browser: 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: 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.

From code

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.

Cost

$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.

Run it weekly

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.

原文:https://www.a8q9.cn/en/article/is-your-robots-txt-blocking-chatgpt-and-claude-check-it-and-generate-llms-txt-in-35b83a.html

相关文章