Magento robots.txt and AI bot control options compared

Magento robots.txt and AI bot control options compared

Magento’s built-in robots.txt setting is enough for a few manual rules. For AI bots you usually want more: per-bot rules that stay current, content signals, and no risk of overwriting your SEO rules. A free module or Cloudflare gives you that. Remember that robots.txt is a request, not a lock.

Five options side by side

Option Per-bot AI rules Keeps existing rules Per store view Cost
Magento admin setting Manual text only Yes — it is your text Yes, by design scope Free
Static pub/robots.txt file Manual text only Yes No — one file for all Free
Panth Robots SEO Yes/No toggle per bot Custom-body override Yes Free, MIT
angeo/module-robots-txt-aeo ~21 AI bots managed Yes, in Inject mode Yes Free, MIT
Cloudflare managed robots.txt Set by policy: Search, Agent, Training Yes — prepends to your file Per zone (domain) All plans

1. Magento’s own setting

In the admin, go to Content > Design > Configuration, pick the scope, and open Search Engine Robots. You can type custom instructions and set the default meta robots tag. Magento serves the result at /robots.txt.

On Adobe Commerce Cloud, Adobe’s launch checklist says the file is generated from the admin and served through a Fastly VCL snippet; multi-site setups use prefixed file names. Adobe also warns: never put your admin path in robots.txt. If your custom text does not show, Adobe’s knowledge base says indexing may be disabled on that environment.

The limit: you maintain the AI bot list by hand. New bots, such as OAI-AdsBot, are easy to miss.

2. A static file

Some hosts serve a physical robots.txt before Magento sees the request. It is simple, but it ignores the admin setting and cannot differ per store view. Check which one your server returns before you edit either.

3. Panth Robots SEO

A free module by mage2kishan. It adds per-store robots.txt, Yes/No toggles for bots like GPTBot, ClaudeBot and PerplexityBot, an admin grid for per-user-agent rules, and X-Robots-Tag headers. Packagist lists v1.3.7 (30 Oct 2026), Magento 2.4.4–2.4.8 and 69 installs. It requires the vendor’s core module.

4. angeo/module-robots-txt-aeo

A free module by angeo.dev (disclosure: we build it). In Inject mode it adds a managed AI-bot block and leaves your own rules untouched; Replace mode rebuilds the full file. Version 4.0.0 can also check if a crawler is real, using Web Bot Auth signatures and published IP ranges; it reports and never blocks. It has CLI commands to preview and validate the live file. Packagist lists Magento 2.4.6–2.4.9 and 19 installs.

5. Cloudflare managed robots.txt

If the store runs behind Cloudflare, it can add AI rules for you. You set policies for Search, Agent and Training; Cloudflare prepends matching rules and Content Signals (search=yes, ai-train=no by default) to your existing file. For real blocking, Cloudflare points to its AI Crawl Control feature. Google Search Console may flag Content Signals as “Syntax not understood”; Cloudflare says it has seen no effect on crawling.

robots.txt is a request, not a lock

Cloudflare’s docs say it plainly: “robots.txt compliance is voluntary.” OpenAI says robots.txt rules “may not apply” to ChatGPT-User, because a user starts the visit. To actually stop a bot, block it at the server or CDN, after you verify it is real.

How to choose

  • One store, few rules: the admin setting is fine. Review the bot list every few months.
  • Several store views and many AI bots: a module that keeps the bot list for you.
  • Behind Cloudflare already: use managed robots.txt, and keep Magento’s own rules for SEO paths.
  • Adobe Commerce Cloud: follow Adobe’s Fastly steps first; a module only changes the content.

FAQ

Where is robots.txt in Magento 2 admin? Content > Design > Configuration > (scope) > Search Engine Robots.

Should I block GPTBot? GPTBot collects training data. Blocking it does not remove you from ChatGPT search; that is OAI-SearchBot. Decide for each bot separately.

Why is my Magento robots.txt not updating? A physical file, a cache, or disabled indexing on the environment can override it. On Cloud, check Adobe’s knowledge-base article.

Sources (checked 12 Nov 2026): Adobe: robots.txt launch best practice · Adobe KB: robots.txt not updating · Cloudflare managed robots.txt · Panth Robots SEO · angeo/module-robots-txt-aeo · OpenAI crawlers