My Blog Was Invisible to AI. Cloudflare Was the Reason.

cloudflare seo geo ai astro

More and more of my own lookups start in an AI assistant, not a search box. If someone asks one of them how to run Hermes Agent for a team on Kubernetes, I want the answer to come from this site, with a link. The name for that work is generative engine optimization, or GEO: SEO for readers that are language models.

Most GEO advice starts with content: write clear answers, add structured data, publish an llms.txt. I started one step earlier and asked a dumber question. Can the crawlers even get in?

curl -s -o /dev/null -w '%{http_code}\n' \
  -A 'Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)' \
  https://ashkmb.com/blog/ingress-nginx-archived-upstream/

403. The same for ClaudeBot and PerplexityBot. Every post I had written was invisible to the three assistants I cared most about.

The switch that was already off

Cloudflare sits in front of the site, and its dashboard has an obvious suspect: a toggle called Block AI bots. It was off. I had never turned it on.

The zone’s bot settings live behind one API endpoint, GET /zones/<zone-id>/bot_management, and reading the whole object told a different story than the dashboard page I had been staring at:

{
  "fight_mode": true,
  "ai_bots_protection": "disabled",
  "crawler_protection": "disabled",
  "ai_training": "disallow",
  "ai_search": "disabled",
  "ai_user": "only_on_ad_pages",
  "is_robots_txt_managed": false
}

ai_bots_protection is the “Block AI bots” toggle, and it was disabled, as the dashboard said. The line that mattered was the first one. Bot Fight Mode is Cloudflare’s free-plan bot filter. It challenges traffic that looks automated, and an AI crawler is automated by definition. It does not read robots.txt, and it cannot be tuned: Cloudflare’s own docs say you cannot bypass or skip it with WAF custom rules, because it runs outside the rules engine. On the free plan it is all or nothing.

In hindsight there had been a hint. For about a week, plain requests from my laptop had been getting Cloudflare’s “Just a moment…” page, while the same site on its pages.dev address answered normally. I had noted it as a curiosity and moved on. Since the change, those requests go through too.

The ai_training, ai_search and ai_user fields look relevant, but they were not the cause. They describe the policy Cloudflare writes into a robots.txt that it manages for you. Mine is my own file (is_robots_txt_managed: false), so they had no effect on the 403. I set them anyway, so the settings say what I mean:

curl -s -X PUT \
  -H "Authorization: Bearer $CF_TOKEN" \
  -H "Content-Type: application/json" \
  "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/bot_management" \
  -d '{"fight_mode": false, "ai_bots_protection": "disabled",
       "ai_training": "disabled", "ai_search": "disabled",
       "ai_user": "disabled", "is_robots_txt_managed": false}'

The token needs one permission, Zone → Bot Management → Edit, on this zone only. After the change, the same three requests returned 200 200 200.

A borrowed user agent is not the real crawler. Cloudflare recognises the real ones by their IP ranges, so a spoofed GPTBot string from my laptop is a rough check, not proof. It is still the right first test: it went from 403 to 200 with exactly one setting changed, and it costs nothing to run after every Cloudflare change.

The decision behind the PUT is worth stating plainly, because it is a real trade-off. There are two kinds of AI bots: search and retrieval bots that fetch a page to answer a question right now, and training crawlers that collect text for the next model. Many sites allow the first and block the second. I allow both. Everything on this site is written to be read and reused; a model that learned from it is one more reader. public/robots.txt now says so explicitly, with a group for each major AI agent, even though User-agent: * already allows everything. An explicit group documents intent, for crawlers and for whoever edits the file next.

Every URL existed

With the door open, I started probing for the files I planned to add, and hit the second surprise. https://ashkmb.com/llms.txt returned 200 before I had created it. So did any path I made up.

Cloudflare Pages treats a site without a 404.html as a single-page app and answers every unknown path with the home page and status 200. For a human that is a mild annoyance. For a machine it is a lie: every probe for a Markdown file or an llms.txt “succeeded”, and a crawler that follows a dead link indexes my home page under that URL.

The fix was one file, src/pages/404.astro, marked noindex. Astro builds it to 404.html, Pages serves it with a real 404, and status codes mean something again. It also changed how I verify deploys: a 200 used to prove nothing, so I still check the page title, not just the status.

What an AI reader needs once it can get in

Once crawlers could reach the site and status codes told the truth, the content work started. In order of how much each one is worth:

Markdown twins. Every post has a plain Markdown version at the same URL with .md instead of the trailing slash, for example /blog/ingress-nginx-archived-upstream.md. An HTML page carries navigation, scripts, an audio player and a lot of markup around a few thousand words. The twin is just the words, with a short header so a model knows what it is reading and who wrote it:

# The Upstream Is Archived. The CVE Is Not.

> Two unauthenticated NGINX HTTP/2 RCEs landed overnight, ...

- URL: https://ashkmb.com/blog/ingress-nginx-archived-upstream/
- Author: Ashkan Kamyab (https://ashkmb.com)
- Published: 2026-11-19
- Language: en

The body below is the raw post with root-relative links rewritten as absolute ones, so a link still works once the text is lifted out of the site. Code blocks survive untouched, which matters for technical posts, where the command is the part worth citing. Each HTML page points at its twin with <link rel="alternate" type="text/markdown">, and a line in public/_headers serves .md files as text/markdown. All of it is generated at build time by an Astro endpoint, so a new post gets its twin without anyone remembering to make one.

llms.txt and llms-full.txt. /llms.txt is a short index: one paragraph on who writes this site and what about, then every tutorial and post with its excerpt, linking the Markdown twins. /llms-full.txt is the full English text of every post in one file, about 440 KB. The format is a community proposal, not a standard, and I have no evidence that any major assistant reads it today. It costs one build step to generate, so it is cheap insurance.

Structured data that says when, who and what. Posts already had BlogPosting JSON-LD. It now also carries dateModified (from an optional updated field in the front matter), keywords from the tags, and the author’s sameAs links to GitHub, LinkedIn, X, Instagram and YouTube, so a model can tie the posts to one person. Freshness matters more to an AI answer than to a human skimming: “tested in November 2026” is a reason to trust a command.

robots.txt that matches the Cloudflare settings. Two places decide whether a crawler gets in, and they have to agree. Mine now do, and the repo’s CLAUDE.md records the exact Cloudflare state, so the next change does not quietly undo it.

Tutorials are the content AI tools reach for

A lot of what people ask assistants is “how do I do X”. A narrative post answers that badly: the steps are buried in a story. So the site now has a separate Tutorials section with its own schema: difficulty, duration, prerequisites and the exact versions it was tested with. Each tutorial page carries HowTo JSON-LD, with the steps generated from its ## Step N: headings:

{
  "@type": ["TechArticle", "HowTo"],
  "totalTime": "PT60M",
  "proficiencyLevel": "intermediate",
  "step": [
    { "@type": "HowToStep", "position": 1, "name": "Step 1: Create a practice cluster", "url": "…#step-1-create-a-practice-cluster" }
  ]
}

The first one is multi-user Hermes Agent on Kubernetes: one isolated agent per person, each with its own namespace, volume, secret, network policy and HTTPS hostname.

Tutorials come with one rule: nothing is published that was not run. A script pulls every bash block out of the Markdown in order, and the whole tutorial runs end to end against a throwaway kind cluster. That rule paid for itself on the first clean run. My exploratory run had passed, but on a fresh cluster the port-forward in one step started before the gateway’s proxy pod was ready, and failed. A human following along would have waited a few seconds without noticing. A reader who copies the commands one after another hits the race every time. One kubectl wait fixed it, and only a clean run could have found it.

Two reviews caught things the run could not. One found a logic error in my own explanation of what happens on a cluster whose network plugin ignores network policies. The other caught overclaims about isolation: through the public gateway, agents can still reach each other’s hostnames, and a shared API key is readable by every agent. The tutorial now says exactly where the isolation ends. An overclaim in a blog post misleads one reader. Quoted by an assistant, it misleads everyone who asks.

Keeping it from rotting

Generated files fail quietly. A twin that stops rendering or a draft that leaks into llms.txt breaks nothing a person would notice. So there is a small Python test suite, standard library only, that runs over the built dist/ folder in CI after every build: every published post and tutorial has its twin in all three languages, no twin keeps a root-relative link, llms.txt lists every published post and tutorial and no drafts, the JSON-LD carries the right dates, and every tutorial has its HowTo steps. Adding a generated file now means adding a check for it.

What I don’t know yet

All of this makes the site easy for an AI to read and cite. None of it proves anyone will. Citations take weeks to show up, and the assistants do not report referrals the way search engines do. I will look again in a few months and write down what moved, if anything.

If you want the short version for your own site, it is the order I wish I had started in:

  1. Request one of your pages with a GPTBot, ClaudeBot and PerplexityBot user agent. If you get anything but 200, check Bot Fight Mode (or your host’s equivalent) before you touch content.
  2. Request a path that does not exist. If it returns 200, fix that first.
  3. Make your robots.txt and your CDN’s bot settings agree, and write down why.
  4. Give every page a clean text version, and an index that links them.
  5. Put dates and an author on everything, and test any command before an assistant quotes it.
$ cat AGENTS .md
· 16 min read

My AI Agents Got a Memory and a Night Shift. Here Is What Broke First.

When I turned off Hermes Agent in October, I lost two things: a memory that followed me between tools, and someone to hand open-ended work to. Five weeks later I have both back, built my own way: a search over my notes for my chat, a walled memory server for my coding agents, and a task board that Claude works through every night. This is the story of how that came together, and of every place it broke on the way.

agents ai self-hosting harness memory claude
$ cat AI .md
· 10 min read

My video studio is code. A new benchmark tested agents on the same job.

AgenticStudio is the code behind my YouTube channel: daily Shorts, a Sunday digest, a cartoon debate show and a kit for videos I present myself. No frame comes from a video model. VibeVideoBench just measured frontier agents on code-driven video. Here is how my setup compares, and the one thing no benchmark can tell you.

ai agents video automation benchmarks
$ cat AI .md
· 8 min read

A 30B coding model on a CPU mini-PC. 17 tokens a second, and the prompt is the limit.

I put Qwen3-Coder 30B on the always-on mini-PC that runs my agent harness, with no GPU. It writes at about 17 tokens a second, which sounds usable. The real limit is reading the prompt: a 10K-token context takes about two and a half minutes before the first word. Here are the numbers, the tuning that did not help, and what would.

ai self-hosting local-llm ollama performance