---
title: "Robots.txt editor: one switch per bot, published via Cloudflare"
description: "How to review the current file, preserve rules, and distinguish drafts, publication, and domain responses when using an editor and Cloudflare."
url: "https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/"
markdown_url: "https://cookingmetrics.com/blog/editor-robots-txt-bots-ia.md"
lang: "en"
date_published: "2026-09-03"
author: "Martín Garay"
author_url: "https://cookingmetrics.com/about-martin-garay/"
publisher: "CookingMetrics"
publisher_url: "https://cookingmetrics.com/"
keywords: ["Technical SEO", "Cloudflare", "SEO for AI (GEO)"]
citation_apa7: "Garay, M. (2026, September 3). *Robots.txt editor: one switch per bot, published via Cloudflare*. CookingMetrics. https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/"
references_apa7:
  - "Cloudflare Docs. (n.d.). *robots.txt setting*. https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/"
  - "RFC Editor. (n.d.). *Robots Exclusion Protocol (RFC 9309)*. https://www.rfc-editor.org/rfc/rfc9309.html"
  - "Google Search Central. (n.d.). *Google robots.txt specification*. https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec"
---

# Robots.txt editor: one switch per bot, published via Cloudflare

> How to review the current file, preserve rules, and distinguish drafts, publication, and domain responses when using an editor and Cloudflare.

- **Author:** [Martín Garay](https://cookingmetrics.com/about-martin-garay/) · Founder of CookingMetrics
- **Published:** September 3, 2026
- **Topics:** Technical SEO, Cloudflare, SEO for AI (GEO)
- **Web version:** https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/

## How to cite this article (APA, 7th edition)

Garay, M. (2026, September 3). *Robots.txt editor: one switch per bot, published via Cloudflare*. CookingMetrics. https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/

In-text citation: (Garay, 2026)

## References

- Cloudflare Docs. (n.d.). *robots.txt setting*. https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/
  In-text citation: (Cloudflare Docs, n.d.)
- RFC Editor. (n.d.). *Robots Exclusion Protocol (RFC 9309)*. https://www.rfc-editor.org/rfc/rfc9309.html
  In-text citation: (RFC Editor, n.d.)
- Google Search Central. (n.d.). *Google robots.txt specification*. https://developers.google.com/crawling/docs/robots-txt/robots-txt-spec
  In-text citation: (Google Search Central, n.d.)

---

Editing robots.txt depends on the platform's capabilities and the layers serving the domain. If you use Cloudflare, managed content may be **prepended to the origin file**, not necessarily replace it entirely. Check the [current configuration and combined file](https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/) before designing another one.

That's the starting point for the IndexNow Connect robots.txt editor. It doesn't assume you write the file. It assumes someone else writes it for you, and works from there.

What the screen does is concrete: it reads your real file, tells you who appears to be writing it, lets you design a new one with one toggle per bot, and — if you want — publishes it through a Cloudflare Worker that you paste into your own account.

## First it reads the file that's live right now

Every time you open the screen, a live request goes out to `https://yourdomain/robots.txt`. With a 6-second timeout, a 500 KB cap, and an anti-SSRF guard. A 4xx is read as "there's no file"; a 5xx stays unknown, because a server error is not the same as "everything allowed".

The analysis runs over that text. It gives you back:

- **Who appears to be writing it.** Eight pattern signatures: Cloudflare, Tiendanube, Shopify, WordPress, Wix, VTEX, PrestaShop, Magento. It's a text heuristic over the whole file, not a platform-ownership detection. A sitemap hosted on `cdn.shopify.com` is enough to flag Shopify. That's why the screen says "who appears to be writing it" and, when nothing matches, "we couldn't identify it".
- **A verdict per bot.** For the 45 bots in the catalog that have a token, it evaluates whether they can reach the root `/`. The question the editor answers is "does this bot get in or not?", not the verdict for a specific URL.
- **Diagnostic notes.** Eight possible ones: Cloudflare block present, all bots blocked, `AdsBot-Google` unnamed while disallowed paths exist, tokens nobody recognizes (possible typo), duplicate tokens, no `Sitemap:`, `Crawl-delay` present, and one specific note: you declared `ai-train=no` but there are AI bots left unblocked.

That last note exists because the intuitive reading is the wrong one. `Content-Signal` declares permitted use, it does not block access. If you want the detail on that line — what each signal means, who honors it and who doesn't — it's in [content-signals-robots-txt](https://cookingmetrics.com/blog/content-signals-robots-txt/).


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/#bloque-1]


## One toggle per bot, and the blocked ones are what we store

The grid has 45 toggles across four groups: AI (21), search engines (10), SEO (6) and social (8). Each one switched on means "this bot gets in".

When you switch one off, the generated file doesn't add a line to the `*` group. It creates that bot its own group:

```
User-agent: GPTBot
Disallow: /
```

A specific group changes which rules apply to that bot; do not assume it inherits the wildcard group's rules. Compare specific paths before approving the result. The [REP protocol](https://www.rfc-editor.org/rfc/rfc9309.html) explains group selection and does not constitute access authorization.

Now, the persistence decision. In the database we store **the blocked ones**, not the allowed ones.

The reason is the default. When we add a new bot to the catalog tomorrow, with "blocked" that bot starts out allowed — which is what you expect — whereas with "allowed" it would end up disallowed without anyone deciding it. A change we make to the catalog can't block traffic you never asked to block. There's a dedicated test for that.

The on-screen editor works with the set of allowed bots, because that's what each toggle marks. The conversion between the two models lives at the edge, between the screen and the database.

## What else goes into the generated file

Beyond the toggles, the editor handles:

- **The three Content-Signal signals** (`search`, `ai-input`, `ai-train`) plus Cloudflare's experimental `use`. If you declare none, the block isn't written: with no signals the file stays clean.
- **Disallowed paths** for the `*` group, one per line.
- **The `Sitemap:` lines**, which go at the end.
- **An AdsBot checkbox.** If it's on and there are disallowed paths, a `User-agent: AdsBot-Google` group is generated with the **same** paths repeated. Google's AdsBot does not obey the `*` group: if you don't name it, it keeps coming in. It's the same solution Tiendanube uses.

## What the generator loses (and it's worth saying out loud)

The generated file does not preserve everything the original had. Four things survive: the `*` group's signals, the `*` group's `Disallow` paths, full per-bot blocks, and the `Sitemap:` lines.

What's lost:

- Specific `Allow:` rules. A fixed `Allow: /` is always written.
- `Crawl-delay` lines. (Googlebot ignores them anyway; Bing and Yandex honor them.)
- Any per-bot group with **partial** rules. A `Googlebot-Image: Disallow: /photos/` becomes either "fully blocked" or nothing.

There's also a real bug worth naming. The generator writes the bot's name, not its token. For 44 of the 45 they match once lowercased. The exception is Screaming Frog: the catalog declares the token `screaming frog seo spider`, but the file comes out with `User-agent: Screaming Frog`. Switching that toggle off doesn't produce a rule the crawler recognizes as its own. We verified it by generating a file with every bot blocked and analyzing it again: it's the only one that comes back as not blocked.

We don't validate the syntax of what you write, either. Paths aren't checked for starting with `/`, sitemaps aren't checked for being valid URLs or for pointing at your domain. Any non-empty line goes in as-is. That's why the screen warns you, right above the button: a badly built `robots.txt` can take your site out of the search engines.


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/#bloque-2]


## Publishing doesn't touch your domain

Here's the most important limitation, and the one people forget most.

"Save and publish" does two things: it saves the configuration and it flips a flag. With that flag on, `/robotsfile/yourdomain` starts returning the file. **Your domain keeps serving exactly what it always served.**

The file goes live only once the Cloudflare Worker has the route. The Worker is a snippet you paste into your own Cloudflare account — there's no integration with the Cloudflare API, you set up the route by hand — and it intercepts exactly two URLs: the IndexNow key (`/{hex}.txt`) and `/robots.txt`. Anything else passes straight through.

The described fallback aims to use the origin when the API does not return the file. That intent alone does not guarantee continuity: errors, timeouts, routes, and origin availability must be tested. Keep the previous response and a verifiable recovery method.

Why a Worker is needed: it's the only mechanism we have to answer a URL at the root of someone else's domain. The platform doesn't allow uploading files and the protocol requires the **same host**. There's no shortcut through another domain. It's exactly the same problem we solve for the [IndexNow key with Cloudflare Workers](https://cookingmetrics.com/blog/clave-indexnow-cloudflare-workers/), and the [Cloudflare technical guide for SEO and GEO](https://cookingmetrics.com/blog/cloudflare-seo-geo-guia-tecnica/) covers the rest of the pieces.


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/#bloque-3]


## Three states, not two

The screen distinguishes three situations that people confuse and that have different fixes:

1. **Not published.** Nothing is saved with the flag on.
2. **Published, but your domain still serves something else.** The classic mistake: the route is missing from the Worker.
3. **Live.** The real file matches the generated one.

The third state isn't declared just because a button was pressed. It's verified: the real file's text is compared against the generated one, in full, exact except for leading and trailing whitespace. If they don't match, we don't say it's published.

Two honest caveats about that check. First: the comparison is boolean, there's no visual diff. Second: the "generated" file it compares against is the draft you have on screen. If you flip toggles and hit Generate without publishing, the card may say "your domain serves something else" even though the published version really is live.

And the underlying limitation: **the check only happens when someone opens the screen.** There's no scheduled verification and no alerts. Nothing re-verifies later if the Worker stops serving it. There's no history or versioning either: we store the last configuration, the publication date and the update date.

The described design regenerates the file from the configuration and uses `Cache-Control: no-store`. Unpublishing changes that application's response, but does not prove an instant update across all layers or crawler copies. Check the domain after every change and keep the previous configuration.

If on top of deciding who gets in you want to measure what happens when they do, [IndexNow Connect](https://cookingmetrics.com/product/indexnow-connect/), the [CookingMetrics](https://cookingmetrics.com/) tool, connects your store, notifies the search engines every time you change a product, and shows you whether AI bots are actually arriving. The robots.txt editor is one piece of that, not the whole product.


[Section for signed-in readers, level C: https://cookingmetrics.com/blog/editor-robots-txt-bots-ia/#bloque-4]


## Frequently asked questions

### Can I use the editor without Cloudflare?

You can design the file, analyze it and download it. You can't publish it on your domain. On Tiendanube the file is served by the platform, and the Cloudflare Worker is the only way we have to answer a URL at the root of your domain. If your site runs on a platform where you can upload the file yourself, download it and upload it.

### If I block an AI bot, does it stop using my content?

It stops coming in, if it honors the REP. `Disallow` is a preference, not a technical barrier: a crawler can ignore it. Real blocking takes WAF or Bot Management rules, which is what [Cloudflare's own docs recommend](https://developers.cloudflare.com/bots/additional-configurations/managed-robots-txt/). And don't confuse blocking with `Content-Signal`: the signal declares permitted use, it doesn't prevent access.

### Why does the generated file lose my current rules?

Because the generator builds the file from the editor's configuration, it doesn't patch it. It keeps `*` group signals, `*` group `Disallow` paths, full per-bot blocks and the `Sitemap:` lines. Everything else — specific `Allow:` rules, `Crawl-delay`, groups with partial rules — doesn't survive. Before publishing, look at the generated file on screen and compare it with the raw one we show you above.

### What happens if your server goes down?

The fallback is intended to use the origin, but the result depends on error handling, the route, and the origin's availability. It must be checked in the specific installation; describing a fallback alone does not guarantee there will be no impact.

### How do I know whether the bots are actually getting in?

The editor describes the rules it interprets. The [AI bot accessibility test](https://cookingmetrics.com/blog/test-accesibilidad-bots-ia/) checks responses with test User-Agents; it does not prove visits from real providers. For those, you need logs and verified identity.

---

## About the author

**[Martín Garay](https://cookingmetrics.com/about-martin-garay/)** — Founder of CookingMetrics

I'm Martín Garay, founder and Martech Advisor at CookingMetrics and Chair of the Technology Committee at CACE, Argentina's ecommerce chamber. For more than 20 years I've worked in Analytics, development, technical SEO and ecommerce: I implement measurement, find where it breaks and turn it into information you can act on.

### My work at CACE, Argentina's ecommerce chamber

- **Chair of the Technology Committee** (SINCE AUGUST 2025): I set the committee's agenda together with Gabriel Topola, vice-chair. We look at the platforms and tools an online business needs to grow: CMS, integrations, customer service and omnichannel operations.
- **Curating the technical forum** (IT CAMP · ECOMMERCE DAY ARGENTINA): With CACE's Events team I put together the IT Camp programme: talks for engineering and development teams on platform architecture, code and good practice, given by speakers who do the implementation work.
- **Marketing and Data Analytics committees** (SINCE 2016): I started in the Marketing committee and helped create the Data Analytics committee. I gave Google Analytics webinars, including the migration to GA4, and worked on the Google Analytics implementation for Hot Sale and Cyber Monday.
- **Ecommerce metrics dashboard** (FOR MEMBERS): With the Data Analytics committee and the CACE Community team we built a dashboard in Google Analytics and Looker Studio so each member can check the key indicators of their own store.

### Talks

- [From SEO to GEO: what it takes for a brand to be cited by an answer engine](https://www.youtube.com/watch?v=mlyjuSBdMzI) — ECOMMERCE DAY ARGENTINA 2026 · IT CAMP · AUGUST 27, 2026 · BUENOS AIRES CONVENTION CENTER
- [SEO for AI: how to prepare a brand to show up in ChatGPT and Google's AI overviews](https://www.youtube.com/watch?v=4dI7jqnLg-M) — AI IN LATAM 2025 · BUENOS AIRES · OVER 3,500 ATTENDEES AND 100 SPEAKERS, PER THE ORGANIZERS

### Profiles and links

- [Full profile](https://cookingmetrics.com/about-martin-garay/)
- [LinkedIn](https://www.linkedin.com/in/seospecialistmartingaray/)
- [Instagram](https://www.instagram.com/garaymartin/)
- [YouTube](https://www.youtube.com/@MartinGaray)
- [martingaray.com.ar](https://www.martingaray.com.ar/)
- [Chair of the Technology Committee at CACE, Argentina's ecommerce chamber](https://cace.org.ar/pages/comision-de-tecnologia?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)
- [Ecommerce metrics dashboard, free for CACE members](https://cace.org.ar/pages/dashboard-de-metricas?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)

---

## About CookingMetrics

CookingMetrics provides Google Analytics consulting, measurement implementation and SEO. Founder Martín Garay brings more than 20 years of experience in Analytics, development and ecommerce. The work connects data with business decisions.

### Services

- **[Google Analytics audit](https://cookingmetrics.com/data-analytics-consulting/)**: Do purchases or revenue differ from your store? We review your measurement and deliver a correction plan in 10 business days. [See the audit scope](https://cookingmetrics.com/data-analytics-consulting/).
- **[Google Tag Manager](https://cookingmetrics.com/services/gtm/)**: Did events stop being tracked after a website change? We review tags, triggers and versions to find duplicates or missing data. [Ask about Google Tag Manager audits and implementation](https://cookingmetrics.com/services/gtm/).
- **[Server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/)**: We assess how to send data from your server, respect consent and prevent duplication. [What's included in server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/).
- **[Technical SEO](https://cookingmetrics.com/services/technical-seo/)**: Have you migrated your site, or are pages missing from Google? We review crawling, indexing, structure and performance. [How we approach technical SEO](https://cookingmetrics.com/services/technical-seo/).
- **[SEO for AI search (GEO)](https://cookingmetrics.com/services/seo-ai-geo/)**: We review whether search engines and assistants can access your pages and understand their content. [What we can improve for AI search](https://cookingmetrics.com/services/seo-ai-geo/).

**Let's talk about your measurement:** [Contact us](https://cookingmetrics.com/about-martin-garay/) · [CookingMetrics](https://cookingmetrics.com/)
