Programming

My robots.txt Allows 41 Crawlers. Every AI Bot Included.

I run the website for a woven fabric mill in Zhejiang — 1,351 URLs, six languages, static HTML on Cloudflare Workers. A few weeks ago I rewrote robots.txt and gave every AI crawler I could find an explicit permission line. The file is now 417 lines. Forty-one User-agent blocks. Every single one of them says Allow: /. That gets a reaction, and the reaction is predictable: you are giving your content to OpenAI for free. Maybe I am. Here is the actual reasoning, including the parts that are guesswo

I run the website for a woven fabric mill in Zhejiang — 1,351 URLs, six languages, static HTML on Cloudflare Workers. A few weeks ago I rewrote robots.txt and gave every AI crawler I could find an explicit permission line.

The file is now 417 lines. Forty-one User-agent blocks. Every single one of them says Allow: /.

That gets a reaction, and the reaction is predictable: you are giving your content to OpenAI for free. Maybe I am. Here is the actual reasoning, including the parts that are guesswork.

What the file actually looks like

The seven Disallow lines are the same in every block:

User-agent: *
Allow: /
Disallow: /private_chat/
Disallow: /cgi-bin/
Disallow: /*.bak*
Disallow: /_*
Disallow: /*/_*
Disallow: /*?product=
Disallow: /*?request=

Then the same seven lines repeat under 40 named user agents — GPTBot, ChatGPT-User, OAI-SearchBot, PerplexityBot, Perplexity-User, Google-Extended, ClaudeBot, Claude-SearchBot, Claude-Web, Claude-User, anthropic-ai, CCBot, Bytespider, Bingbot, Applebot, Applebot-Extended, Amazonbot, meta-externalagent, meta-externalfetcher, DuckAssistBot, MistralAI-User, MistralAI-Index, MistralAI-Training, Google-CloudVertexBot, cohere-ai, Diffbot, YouBot, Timpibot, ImagesiftBot, AI2Bot, omgili, PetalBot, YandexBot, Yeti, Daum, Baiduspider, Baiduspider-render, Googlebot, Sogou web spider, Sogou inst spider.

Two sitemap declarations at the bottom. Nothing else.

The seven paths I block, and why each one exists

These are not SEO boilerplate. Each one maps to something real:

  • /private_chat/ — an internal messaging tool that ended up on the same domain years ago. Nothing a crawler should index.
  • /cgi-bin/ — leftover from the pre-static server. Returns 403 to everything, but keeping it out of the index costs one line.
  • /*.bak* — editor backup files. At some point a .html.bak existed. It should never have been crawlable, and now it structurally cannot be.
  • /_* and /*/_* — anything starting with an underscore. That is my internal convention for build artefacts, partials and scratch files. If it starts with _, it is not a page.
  • /*?product= and /*?request= — query-parameter duplicates. A handful of legacy links still carry these. The canonical tag handles them, but blocking is cheaper than hoping Google agrees.

Note what is not on the list: no Disallow: /articles/, no crawl-delay, no attempt to hide the product pages. The seven lines are about internal hygiene, not about limiting what search engines see.

Why 41 blocks when User-agent: * already covers everything

This is the part where I will be honest about my own redundancy.

Per RFC 9309, a crawler that finds a group matching its own token uses that group and ignores *. If no group matches, it falls back to *. Since my * group already says Allow: /, every one of those 40 named blocks is functionally identical to the fallback. I am not granting anything that was not already granted.

So why write them out?

Because I want the file to be auditable by a human in five seconds. When someone asks "do you allow CCBot?", I do not want to reason about whether their parser handles wildcards the way I assume. I want a line that says User-agent: CCBot followed by Allow: /. That is a claim I can point at.

It also removes one class of ambiguity: a named block always wins over *, so if I ever need to restrict a single crawler later, the group is already there and I only change one line.

The cost of the redundancy is 6 KB of text. The benefit is that the policy is legible without knowing robots.txt precedence rules. I will take that trade.

Why I let the AI crawlers in

The business is B2B: garment brands, wholesalers, importers ordering woven fabric by the metre. Nobody impulse-buys 300 metres of double gauze.

Which means the question I care about is not "will this page rank" but "when a buyer asks an assistant which mills make 125 GSM double gauze at 135 cm, does my name come back".

That is the whole bet. Three reasons I think it pays:

1. The spec is the asset, not the prose. A page listing 100% cotton, 125 GSM, 135 cm, 182 stock shades, 300 m per colour, 15 days, tested to ISO 12945-2 for pilling and GB 18401 Class A for formaldehyde — that is not creative work being scraped. It is a fact sheet. Facts want to be distributed. If a model memorises my GSM and width and repeats it to a buyer, that is exactly the outcome I want. The full field-by-field breakdown of what a spec sheet contains is published for the same reason.

2. Information does not substitute for capacity. Someone can read every number on my site and still cannot produce a metre of cloth. The moat is the loom, the dyehouse relationship and the 15-day lead time, not the disclosure.

3. Blocking is a one-way door in the wrong direction. If AI-mediated search becomes a meaningful acquisition channel for B2B sourcing — and the trend line says it might — being absent from the training and retrieval corpus is not a neutral choice. It is choosing to be invisible in a channel I cannot buy my way back into later.

The counter-argument, and where it actually holds

The strongest objection is not "you lose pageviews". It is: a model that half-remembers your spec will state it wrongly, and a wrong MOQ in an AI answer is worse than no answer.

I take that seriously. It is the reason for the second half of the setup.

Blocking does not fix hallucination. A model that has never seen your site will still answer the question, just with someone else's numbers. Blocking protects nothing and forfeits the mention.

What actually reduces the error rate is giving the correct numbers in a format a retrieval system can consume without parsing 1,351 pages of HTML.

llms.txt and llms-full.txt, with real numbers

I publish two files:

  • llms.txt — 201 KB, 1,703 lines, 9 outbound links. Structured as a fact sheet: company registration, factory address, product range, and the numbers that buyers ask about, each attributed.
  • llms-full.txt — 419 KB, 2,621 lines, 827 links. The full article corpus across six languages, one line per page with title and URL.

The split is deliberate. llms.txt is small enough that a retrieval step can load it whole. llms-full.txt is the index you point at when the question needs depth — for example when someone asks which standard governs a pilling grade, which is where the testing methods map with ISO / AATCC / GB references becomes the useful page rather than a summary.

Neither file is a standard. There is no spec, no validator, and no evidence yet that any major crawler reads them. I treat them as cheap insurance: if a retrieval system does look for them, mine are there and correct. If not, I have lost two files.

When I would reverse this

I set three triggers in advance, because "we will review it later" never happens:

  1. A verifiable wrong fact attributed to us. If an AI answer states a MOQ, lead time or standard that contradicts our published sheet, and I can trace it to a model rather than a competitor's page, I will reconsider which crawlers get in.
  2. Attribution collapse. If answers start citing aggregator sites that scraped us instead of us, the crawlers are feeding competitors' SEO, not our visibility.
  3. Crawl cost. Right now the site is static files behind Cloudflare, so a crawler hitting 1,351 URLs is nearly free. If that changes — if I move to server rendering with per-request cost — the maths changes with it.

The honest limitation

I cannot tell you this works. I have not measured a single inquiry that came from an AI answer. I do not know how many of those 40 crawlers have ever fetched a page. Cloudflare would tell me, and I have not looked yet.

What I can tell you is what the file says, why each line is there, and what would make me change it. That is a policy. Whether it is a good policy is an empirical question I have not finished answering.

If you run a B2B site and you are deciding the same thing, the question I would start with is not "do I want AI to read my site". It is: if a model answers my customer's question, do I want my numbers in that answer or someone else's?

For a commodity spec, I want mine in.