Adobe Commerce does not keep robots.txt as a file you can open and edit. It builds the file from settings stored in the admin database. If you go hunting for it on disk with FTP or SSH, you will waste your time, because editing anything on disk leaves the served file unchanged.
Platform screens change over time. If a menu name in this guide does not match what you see, check the vendor docs linked in Sources for the current path.
The screen that holds two different controls
The configuration screen lives under Content, then Design, in the admin. Choose the store view you want to change, click Edit, and open the Search Engine Robots tab. The box you want is the custom instructions field for the robots.txt file. Type your rules there.
The same tab holds a trap that confuses many teams. A dropdown labeled Default Robots sits nearby, and it controls the meta robots tag printed on your pages. It has nothing to do with the robots.txt file. Setting it to NOINDEX, FOLLOW while leaving the file alone will block indexing without changing a single crawler rule. Treat the dropdown and the file as two separate controls that happen to share a screen.
Two more Adobe quirks complete the picture. First, nothing you save takes effect until you flush the Magento cache. You can write perfect rules, save them, reload the file address, and still see the old version. Save, flush, then check, in that order. Second, each store view can carry its own file. That helps multi-brand setups, and it trips up everyone else, because editing the Global scope while checking a store-view address shows you the wrong file.
On cloud hosting there is one more condition. If search engine indexing is restricted, which is the normal state for staging environments, your custom content never applies. In that case the fix is the indexing setting itself, not the file.
The steps
Begin by looking at the live file. Open yourdomain.com/robots.txt in a browser, using your real domain. If you run more than one store view, note which one you are checking.
In the admin, work through Content, then Design, then Configuration. From the list of store views, open the one you mean to change.
Next is the Search Engine Robots tab. A live store keeps Default Robots on INDEX, FOLLOW. That setting only shapes the meta robots tag on your pages. The file itself is untouched by it.
In the custom instructions field, write your rules with the AI crawler groups high up, ahead of any broad block rules:
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Claude-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: meta-webindexer
Allow: /
User-agent: bingbot
Allow: /
One limit to know: ChatGPT-User only shows up when a person asks ChatGPT to look at a page. Your allow line gives it permission, but it cannot steer a fetcher that pays no attention to robots.txt.
Save the configuration and flush the Magento cache. A reload of yourdomain.com/robots.txt should show your new groups.
If you need to undo it later, the same tab has a Reset to Default button. It brings back Adobe Commerce's standard instructions.
Two misses in one afternoon
Imagine a specialty tea shop on Adobe Commerce. The developer pastes the AI crawler groups into the custom instructions field, saves, and checks the file address. The old file is still showing. The rules were correct, but the cache had not been flushed. One flush later, the new groups appear. Then the team edits the Global scope and checks the address for the US store view, which still carries its own older rules. On Adobe Commerce, scope and cache are part of every edit, not afterthoughts.
The file alone is not the whole story
Robots.txt states what you intend. It cannot force a result. If a bot manager, a Fastly rule, or another content delivery rule stops an AI crawler before it reads the file, your allow rules never get a chance to matter. Checking that outer layer, and keeping an eye on it over time, sits outside this edit.
Frequently Asked Questions
I saved new rules, but the file looks unchanged. Why?
The cache is the usual reason. Nothing changes until you flush the Magento cache, so save, flush, and then check.
What does the Default Robots dropdown actually do?
It controls the meta robots tag printed on your pages, not the robots.txt file. Changing it can block indexing without touching any crawler rule, so do not mistake one control for the other.
I edited the Global scope, but a store-view address shows old rules. Why?
Each store view can carry its own file. Editing Global while checking a store-view address means you are looking at a different file from the one you edited.
Can I just edit a file on the server instead?
No. On cloud hosting the content lives in the database, and changing files on disk does nothing to the file that crawlers receive.
Verified Sources & Technical Documentation
- Adobe Commerce admin docs, SEO overview General Docs https://experienceleague.adobe.com/en/docs/commerce-admin/marketing/seo/seo-overview
- Adobe Commerce admin docs, sitemap and search engine robots General Docs https://experienceleague.adobe.com/en/docs/commerce-on-cloud/user-guide/configure-store/robots-sitemap
- RFC 9309, Robots Exclusion Protocol General Docs https://www.rfc-editor.org/rfc/rfc9309.html
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.