Does GEO actually work once it's done? I tested my site as 33 different crawlers
My robots.txt has 12 lines that explicitly allow 12 AI crawlers by name: GPTBot, ClaudeBot, PerplexityBot, Bytespider… each one followed by Allow: /. I wanted to confirm those 12 lines actually did anything, so I read the file with the function that ships with Python. What came back was 17 bytes: error code: 1010.
I had never configured a 1010 anywhere. It comes from a check the CDN turns on by default, which rejected the request before it ever reached my code. That sent me back over my whole "optimize for AI search" setup, this time from the outside: 33 client identities, changing nothing but the request headers, asking three questions. Can it read robots.txt? Can it read the pages? And what does it actually get?
If you've done this kind of optimization for your own site, or plan to, here's what you can take away:
- A self-check script. About thirty lines, Python standard library only. Change one URL, run it, and it tells you which clients are being turned away at the door.
- A rule of thumb. Between "configured" and "working" sit three layers: the CDN's default checks, robots.txt matching rules, and each crawler's own implementation. I tripped over every one.
- A checklist. Which things you can verify yourself, and which you can only see in a dashboard.
Conclusions first, then how I fell flat on a 17-byte response.
The verdict: the allow rules work, but three layers aren't up to robots.txt
- Every allowed AI crawler gets in. 32 of 33 identities got 200 everywhere, named or not. At the request-header level, the CDN isn't blocking AI crawlers.
- What gets blocked is the Python standard library's default identity. It gets a 403. And that same 403 means "no restrictions" according to the standard and to Google, but "everything forbidden" according to Python's standard library.
- The 12-line allowlist only applies when the names match, and those groups don't inherit the wildcard group's rules. For a site that only wants to allow crawlers, it's mostly for show.
- AI crawlers currently receive the full HTML, in which the body text of an article is only 19% to 30%.
llms.txtworks technically, but almost no crawler reads it.
None of these four can be seen in my code. First, what I did.
The five things I did for AI search
This home page has been live for 12 days. For AI search, I did the five things below, the same five almost every GEO article mentions:
- Allowed 12 AI crawlers by name in robots.txt, with the sitemap URL at the end.
/llms.txt: a site summary plus links to products and posts, each post with a one-line summary. There's also/llms-full.txtwith the full text.- A plain-text version. Request any page with curl and you get formatted text instead of HTML.
- Structured data on every page: articles, author, breadcrumbs, FAQ.
- A key-points summary at the top of every post, and titles that are about one thing.
All five are written up in the repo's README, and they all look right. The problem is they were all written from the inside: once they were done, I assumed they worked. This time I went outside.
How I tested: 33 identities, changing only the request header
I used curl, changing only the User-Agent header each time, and requested /robots.txt, the home page and one post. The 33 identities fall into five groups: HTTP libraries' default identities, such as Python's urllib and requests, Go and Java; search engine crawlers; AI crawlers named in robots.txt; unnamed ones, such as Meta's and Amazon's; plus two browsers. The approach is the same as in my last post on ads: measure numbers from the outside instead of copying them from commit messages.
First, what this method can't see. Every request came from the same IP, so blocking by IP or by behavior is invisible to it. Cloudflare's documentation says that on the free plan, AI crawlers are identified by request headers alone. So if a site is on the free plan, this method shows the truth; on paid plans, not necessarily.
When the first round finished, the screen showed a solid column of "disallowed", from Googlebot all the way to a crawler name I'd made up on the spot.
Why the first test was all wrong: one 403, two readings
I was using RobotFileParser from Python's standard library. When it fetches robots.txt, it sends the library's default header, Python-urllib. The CDN rejected that request with a 403. By this library's logic, if robots.txt can't be read and the status is 401 or 403, the whole site is treated as off-limits. It never read my file, yet it made a decision on my behalf that was the opposite of what I meant.
Feeding the file contents straight to the parser fixed the results instantly. robots.txt was fine; the problem was who could read it.
The bigger lesson is that the standard and individual implementations disagree on what a 403 means. RFC 9309 says that if robots.txt returns a 4xx, crawlers may access any resource on the server; only a 5xx must be treated as complete disallow. Google puts it even more plainly: every 4xx except 429 is treated as if the file didn't exist, meaning no crawl restrictions at all, and it warns against using 401 and 403 to limit crawl rate. Python's standard library singles out 401 and 403 and treats them as complete disallow. The same 403 reads as "crawl away" to Google and "keep out" to Python.
So who served that 403? The response headers said Cloudflare, and the body said error code: 1010. According to the docs, it comes from a feature called Browser Integrity Check, which is on by default and blocks some HTTP libraries' default headers. The example the docs give is, of all things, Python's urllib. I had never configured it.
Both sides of this are worth thinking about. If you're writing a crawler, switch to a header that says who you are and you'll get through, no need to pose as a browser. If you run a site, this check only blocks a small slice of clients, but the way it blocks them is by keeping them from reading your robots.txt. So whether they "crawl away" or "keep out" is decided by the library they happen to use, not by you.
That was the only one blocked. The other 32 all got in, but what they saw wasn't what I thought I'd prepared.
How many of the 12 allowlist lines actually matched?
The rules work like this: a crawler looks for groups by the name it declares; if more than one group matches, they're merged; only if none match does it use the * group. There's no inheritance: once a crawler has its own group, the wildcard group's rules no longer apply to it.
Applied to my file, there are two outcomes. If the parser matches using the name GPTBot, the crawler lands in its own group, which contains only Allow: /. If the parser gets the full header, that long Mozilla/5.0 … GPTBot/1.2 string, Python's implementation only looks at what comes before the first slash, which is mozilla, so it falls into the * group and none of the 12 lines are used.
For a site that only wants to allow crawlers, the two outcomes are the same, since both mean "allowed", so those 12 lines are mostly for show. But if you wrote them to block a particular crawler, say allowing GPTBot but not Bytespider, this is a trap: the rule has to go in that crawler's own group, and the wildcard group's Disallow doesn't apply to it. My wildcard group also disallows /v1/ and /admin; both paths turned out to be 404 on the site, probably leftovers from writing the config.
That settles the rules layer. One step further in: once a crawler gets in, what does it take away?
AI crawlers take HTML, and almost nobody reads llms.txt
AI crawlers' request headers aren't curl, so the site gives them full HTML. I took three pages apart and counted. Every page carries about 9.4KB of inline styles and about 2KB of structured data up front. In a 24,000-character post, body text is only 19%; in a longer one, 30%; on the home page, just 6%.
The plain-text version was meant for crawlers, but it only responds to headers like curl and wget, so AI crawlers never get it. And on the home page it's even thinner: the HTML has 1,172 Chinese characters, the plain-text version just 201, a list of product and post titles.
The thing really made for crawlers is /llms.txt. I checked it too: all 19 links open, and the format mostly follows the spec. The one deviation is that the FAQ section contains full questions and answers, while the spec wants every section to be a list of links. Technically, it works.
But does any crawler read it? Ahrefs looked at 137,000 domains in May 2026; about 38,000 of them published an llms.txt, and 97% of those didn't get a single request for it that month, from crawlers or people. Google's official documentation on AI features doesn't mention llms.txt at all; it says you don't need new machine-readable files, AI text files or markup. The same page says there's no special structured data to add. All 14 of my pages have valid structured data, but that helps with how results look in search, not with AI.
I checked one more thing. Searching for the titles of three posts, none of them showed up in the search engine I use; what did show up was the home page, with a snippet taken straight from its FAQ. This site got burned by keyword stuffing before, and right now it isn't even properly in search yet, so worrying about being cited by AI is a bit premature.
So the better move is to give crawlers something cleaner, not to add another file. And in 2026 there's a new way to do that.
Two things from 2026: Markdown for Agents, and the CDN's own crawler policy
The first is Markdown for Agents, which Cloudflare launched in February 2026. When it's on and a client sends Accept: text/markdown, the CDN converts HTML to Markdown at the edge before returning it. On my site, sending that header did nothing; I still got HTML. The same request to Cloudflare's own docs site came back as text/markdown. The awkward part for me is that I already have Markdown, the plain-text version; all that's missing is handing it over based on the request header. I haven't done that yet.
The second is that the CDN has its own AI crawler policy, separate from your robots.txt. Cloudflare splits AI crawlers into three categories (search, agents and training) with separate settings. Two places in the docs disagree on the default for new domains: one says all three are allowed by default, while the changelog says that from September 15, 2026, new domains block training and agent crawlers by default on pages that show ads. It also has a switch that, when on, inserts its own managed directives at the top of your robots.txt. My file still starts with the line I wrote, with nothing inserted.
From the outside, you can only see half of both. What the policy is actually set to is only visible in the dashboard. The parts you can verify yourself, I've put into a script and a checklist.
What to take with you: a script and a checklist
Change the URL to your own site and run it. Python standard library only, nothing to install. A line showing ERR means that request got no response, which happens when the network blips; just run it again.
import urllib.request, urllib.error
SITE = "https://niceday-app.com" # change to your own site
AGENTS = [
("Python-urllib", "Python-urllib/3.15"), # the Python standard library's default header
("python-requests", "python-requests/2.32.3"),
("curl", "curl/8.7.1"),
("Googlebot", "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"),
("Baiduspider", "Mozilla/5.0 (compatible; Baiduspider/2.0)"),
("GPTBot", "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)"),
("ClaudeBot", "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"),
("PerplexityBot", "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)"),
("Bytespider", "Mozilla/5.0 (Linux; Android 5.0) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; Bytespider; spider-feedback@bytedance.com)"),
]
def status(path, ua):
"""Status code only: 200 is fine; 401/403 means rejected; no connection is recorded as ERR."""
try:
return urllib.request.urlopen(urllib.request.Request(SITE + path, headers={"User-Agent": ua}), timeout=15).status
except urllib.error.HTTPError as e:
return e.code
except OSError: # timeouts, dropped connections, DNS failures: all count as no response
return "ERR"
print(f"{'agent':<14}robots.txt home")
for name, ua in AGENTS:
robots, home = status("/robots.txt", ua), status("/", ua)
print(f"{name:<14}{robots:>8} {home:<4}" + ("" if robots == 200 else "← can't read"))
# Third question: request the home page with Accept: text/markdown and see whether you get Markdown or HTML
req = urllib.request.Request(SITE + "/", headers={"User-Agent": "geo-selfcheck/1.0", "Accept": "text/markdown, text/html;q=0.9"})
try:
r = urllib.request.urlopen(req, timeout=15)
print("With Accept: text/markdown:", r.headers.get_content_type())
except urllib.error.HTTPError as e:
print("With Accept: text/markdown: rejected,", e.code)
except OSError:
print("With Accept: text/markdown: no response")
On my site, the output looks like this:
agent robots.txt home
Python-urllib 403 403 ← can't read
python-requests 200 200
curl 200 200
Googlebot 200 200
Baiduspider 200 200
GPTBot 200 200
ClaudeBot 200 200
PerplexityBot 200 200
Bytespider 200 200
With Accept: text/markdown: text/html
Run the same script against Cloudflare's docs site and the results differ: Baidu's crawler gets rejected too, and the last line says text/markdown. So don't copy anyone's conclusions, including mine.
The checklist. These seven can be verified without logging into any dashboard:
- Read robots.txt once with a library's default header. If it isn't 200, some class of clients is being turned away, and they have no idea you meant to let them in.
- Request robots.txt and the home page with the header of every AI crawler you named. Check that each gets 200.
- Open the path behind every
Disallowin robots.txt. Both of mine were 404. - Request a post with
Accept: text/markdown. See what you actually get. - Fetch a post with GPTBot's header and measure how much of it is body text. If it's under half, it's worth thinking about.
- Open every link in llms.txt. Then check that each section is a list of links.
- Search for your own titles. If search can't find them, don't worry about AI yet.
Two things you can only check in the dashboard: what the CDN's AI crawler policy is currently set to, and whether Browser Integrity Check is on or off. Cloudflare's panel also has a readiness score for AI agents that you can run in one go.
The checklist covers the problems I already know about. Below are four I haven't figured out.
Four questions I haven't figured out
- Should llms.txt stay? It was quick to make and it works technically, but the evidence says almost nobody reads it. Is keeping a file nobody reads preparing for the future, or just comforting myself?
- Do I actually want to be read? When I wrote robots.txt, I allowed all 12, including
Google-Extended, which governs training use. Is allowing search the same as allowing training? Cloudflare sets separate policies for them for a reason. When you allowed crawlers, did you tell them apart? - Who should decide who gets to read? The site owner writes "allow", the CDN blocks one kind of client by default, and the blocked party interprets that by its own rules. None of the three decisions were mine, and neither was the final result.
- Am I optimizing, or just ticking boxes? Of the five things, the one that actually answers "can AI read this?" is verifying from the outside. The other four were quick to do, and only when verifying did I realize I'd never looked at the results. How many items on your list did you check after doing them?
If you run this script against your site, I'd love to hear what you get, especially if it's different from what I found here.
— NiceDay