Why Your robots.txt Allow Rule Does Not Work: Cloudflare, Your Host and Your Plugins

Why Your robots.txt Allow Rule Does Not Work: Cloudflare, Your Host and Your Plugins

Your robots.txt says GPTBot is allowed. Your logs show no visits from it, or Cloudflare reports blocked AI bot traffic. So which setting wins? A common version of the question is “Why does Cloudflare block GPTBot when my robots.txt allows it?”

The short answer is that robots.txt rarely wins. A robots.txt file is a request that a crawler reads, and RFC 9309, which defines it, says plainly that “These rules are not a form of access authorization.” Four other things can say no before the crawler reads your file or instead of it, and the file itself can fail in two ways. This post puts them in the order a request meets them, so you can find the layer that is overruling you.

We read the Cloudflare, Google, OpenAI and RFC pages on 20 November 2026, and each is linked where we use it. We also ran a small test on our own site, and we say below what it can and cannot show.

The five layers, in the order a request meets them

LayerWhat decidesCan it override your Allow rule?How to see it
1. Cloudflare edgeAI Crawler and Agent access policies, Bot Fight Mode, WAF rulesYes. The request is refused before robots.txt matters.Cloudflare Security Analytics
2. Host firewall or security pluginRate limits and bot rules above WordPressYes. A 403 or 429 reaches the crawler.A request with a bot user agent, plus host logs
3. How robots.txt is servedThe HTTP status of the file itselfYes. An error changes what the crawler assumes.curl -I on robots.txt
4. What robots.txt saysGroup matching, rule length, tiesYes, if a group you did not expect applies.Read the groups for that bot
5. The crawlerThe operator’s own rules and cacheYes. Some fetchers ignore the file, and changes take time.The operator’s documentation
A diagram of the five layers a crawler request can meet, from the Cloudflare edge to the crawler's own rules.

Start at layer 1 and work down. The first layer that answers “blocked” is the one to fix.

Layer 1: Cloudflare’s edge

Cloudflare now groups AI crawler settings under Security, then Settings, then Bot traffic, then “AI Crawler and Agent access policies”. There are three behaviours (Search, Agents and Training) and each takes an action. Cloudflare says “Each policy applies to Verified bots with that behavior and matching unverified bots.” For new domains, its page says “Search, Agents, and Training use Allow (do not block) by default.” Cloudflare has changed these defaults before, and we covered the 15 September change in What Cloudflare’s Crawler Default Change Means for a WordPress Blog, so read your own dashboard instead of trusting a default.

The setting that confuses people is Disallow for Training. Cloudflare’s managed robots.txt page says “With Bot Preference Sync enabled, setting Training to Disallow adds managed directives and enables edge blocking for AI training crawlers. Mixed-use crawlers are excluded from this edge block.” So one switch writes a robots.txt line and also blocks at the edge. Your own file can say Allow, and the edge block still wins.

Bot Fight Mode is a separate and blunter tool. Cloudflare states “You cannot bypass or skip Bot Fight Mode using WAF custom rules or Page Rules”, and points to Super Bot Fight Mode when you need skip rules. To see what was blocked, Cloudflare says “You can view blocked AI bot traffic via Security Analytics”. Which of these options your dashboard offers depends on your plan, so check what you can see.

Layer 2: your host or a security plugin

A firewall above WordPress can refuse a bot without WordPress ever seeing the request. Cloudflare’s own robots.txt monitoring guidance includes the line “If the file exists, check for upstream WAF rules or other security settings that may be blocking access.” We saw this on our own site on 7 September, when the host returned 429 to a GPTBot user agent while robots.txt said Allow. We wrote it up in Your Host May Be Blocking AI Crawlers Without Telling You.

Layer 3: how robots.txt is served

A crawler treats the status code of robots.txt as an instruction too. RFC 9309 sets out two cases. If the file is unavailable, “the crawler MAY access any resources on the server”. If it is unreachable because of server or network errors, “the crawler MUST assume complete disallow”. Google handles the same cases in its own way:

  • 4xx errors. Google treats them (except 429) “as if a valid robots.txt file didn’t exist”. It adds “Don’t use 401 and 403 status codes for limiting the crawl rate.”
  • 5xx errors. Google stops crawling for 12 hours, then “for the next 30 days Google will use the last good version”.
  • Caching. Google “generally caches the contents of robots.txt file for up to 24 hours”.

So a security rule that returns 403 on robots.txt tells Google there are no restrictions, while a 503 from an overloaded host can pause crawling. Neither is the allow rule you wrote.

Layer 4: what the file says

For one crawler, Google picks “the group with the most specific user agent” and says “Other groups are ignored.” The RFC adds that if more than one group matches, “the matching groups’ rules MUST be combined into one group”. When an Allow and a Disallow rule are equally specific, the RFC says the Allow rule should be used, and Google says “Google uses the least restrictive rule”.

This matters when Cloudflare adds its managed content. Cloudflare says it will “prepend our managed robots.txt before your existing robots.txt” and that it will be “combining both into a single response”. With every policy set to allow, “there is nothing to prepend and your robots.txt is served unchanged”. Here is what two matching groups for one crawler produce.

Managed group (Cloudflare)Your groupResult under the RFC and Google rules
GPTBot: Disallow /GPTBot: Allow /Equal specificity, so the Allow rule is used and robots.txt allows the crawler.
GPTBot: Disallow /No GPTBot group (only *)The named group applies and your * rules are ignored for that bot.
GPTBot: Disallow / plus the Training edge blockGPTBot: Allow /robots.txt may allow it, but the edge block still stops the request.

This table follows the written rules. We have not tested a real GPTBot against it, and a crawler may implement the rules differently. For the group-matching mistakes that break most files, see Audit Your Own robots.txt for the Most-Specific-Match Trap, by Hand and Blocking or Allowing 29 AI Crawlers, and the robots.txt Trap That Exposes You. For whether WordPress or the server answers for the file, see WordPress robots.txt: What to Allow, Block and Test.

Layer 5: the crawler

OpenAI documents separate bots with separate settings: “Each setting is independent of the others”. It also says “it can take ~24 hours from a site’s robots.txt update for our systems to adjust”. For user-triggered visits it says “Because these actions are initiated by a user, robots.txt rules may not apply.” So a change you made an hour ago may not show yet, and a ChatGPT-User visit does not prove your file was ignored. Our post GPTBot: Should You Allow It, and Has It Even Visited? explains which bot does what.

What we saw on our own site on 20 November 2026

We checked our own robots.txt and sent a few requests. The file returned HTTP 200 from a LiteSpeed server with a Last-Modified date of 5 October 2026 and no line mentioning Cloudflare, so it looks like a physical file and Cloudflare’s managed content is not in it. A request with a bot user agent string for GPTBot, OAI-SearchBot, ChatGPT-User and ClaudeBot returned 200 for both robots.txt and an article, from one internet address.

That result has strong limits. A user agent string from one address is not the real crawler, and a firewall may judge a request by its address as well. On 7 September a similar test returned 429, so we cannot say whether the host rule changed or whether it keys on something else. We did not test layer 1 or the managed file, because our robots.txt shows no Cloudflare content.

Four checks you can paste

# 1. Status, server and date of robots.txt
curl -sI https://example.com/robots.txt | head -20

# 2. Does a bot user agent get through? (403 or 429 means not robots.txt)
# This is a simplified user agent: OpenAI says the real string and its version may change. Run it only on your own site.
curl -s -o /dev/null -w "%{http_code}\n" -A "Mozilla/5.0 (compatible; GPTBot/1.1; +https://openai.com/gptbot)" https://example.com/

# 3. Is Cloudflare adding rules to the file?
curl -s https://example.com/robots.txt | grep -i "Cloudflare Managed"

# 4. Which lines name the bot? The rules follow the last User-agent line of a group, so read on past each match
curl -s https://example.com/robots.txt | grep -n -i "gptbot"

If check 2 returns 403 or 429, the block is not in your robots.txt. If check 3 prints lines, the managed content is in the served file. Check 4 shows only the lines that name the bot. When several User-agent lines share one group, the Allow or Disallow rules come after the last of them, so open the file at those line numbers.

What we do not know

We do not know how a given crawler merges two groups, because operators document this differently. Cloudflare’s pages describe mixed-purpose crawlers in slightly different terms in different places, so test before you rely on either. Dashboards differ by plan. We have not tested a real GPTBot or ClaudeBot at the edge.

Where Host My Blog fits

RankReady, our WordPress AI SEO plugin, writes its crawler rules into a block of your robots.txt marked “# BEGIN RankReady” and “# END RankReady”, with controls for 29 named AI crawlers. Its documentation is direct about the limit: “Robots rules and Content Signals are requests, not enforcement.” On our own site that block sits inside the physical file described above. RankReady writes a physical file only in some setups, so your own file may be served another way.

Cloudflare says its managed content is prepended and combined with your file, so a marked block should still be in the served file. Check the served file with the commands above after you change a Cloudflare setting. RankReady runs alongside your SEO plugin and does not replace it. See the RankReady page for what each tier does.

Questions people ask

Why does Cloudflare block GPTBot when my robots.txt allows it?

Because robots.txt is a request and Cloudflare’s blocks are separate settings that act first. A Training policy set to Disallow with Bot Preference Sync on blocks at the edge as well as writing a robots.txt line, and Bot Fight Mode can block without reading your file.

Does Cloudflare’s managed robots.txt overwrite my file?

Cloudflare’s documentation says it prepends its managed content to your existing robots.txt and serves both in one response, and that with every policy set to allow your file is served unchanged. Check the served file to confirm what your site returns.

How long until a robots.txt change takes effect?

Google says it generally caches the file for up to 24 hours, and OpenAI says search systems can take about 24 hours to adjust. Plan for a day, not an hour.

Does a 403 on robots.txt block crawlers?

Not for Google. It treats 4xx errors other than 429 as if no robots.txt existed, so it assumes there are no crawl restrictions. A 5xx error is different, and the RFC tells crawlers to assume complete disallow.

Which of these five layers have you actually checked on your own site?

Share
Aditya Sharma
Aditya Sharma

Aditya runs Host My Blog and writes The Cited. Five years in WordPress, most of it spent on what actually makes a blog get found rather than what is supposed to. His attention now goes to how AI answers are changing that, and what a blog has to do to still be the source people land on. Everything he writes about here gets tested on the blogs Host My Blog looks after before it reaches the page.

No comments yet

Be the first to comment.

Write a comment

Leave a comment