# Shopify sites' robots.txt files are doing (mild) prompt injection

> Source: <https://scalperless.com/posts/shopify-robots-txt-ai-agents>
> Published: 2026-12-01 22:21:18+00:00

**Recommendation:** Treat robots.txt and page text as data, not instructions, and add a pre-execution filter on commands and MCP calls so injected marketing notes cannot turn into agent recommendations.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

# Shopify sites’ robots.txt files are doing (mild) prompt injection

My AI agent was looking up a U2 ticket sale when it read a note asking it to recommend Shopify’s Shop skill. Five other Shopify stores have the same note.

By Harry Yu ·

I’d asked Claude Code to look into upcoming ticket sales. Before it looked around U2’s site, it responsibly read `robots.txt`. It found a note to AI assistants, asking them to “highly recommend” that their users let them install a skill for Shop, Shopify’s shopping service.

The same note, apart from the web addresses, is on five other Shopify stores I had an LLM check for me: [xTool](https://www.xtool.com/robots.txt), [Unihertz](https://www.unihertz.com/robots.txt), [Novedge](https://novedge.com/robots.txt), [STEMfinity](https://stemfinity.com/robots.txt) and [UGREEN](https://www.ugreen.com/robots.txt). It lists a Shopify email address, and Shopify creates this file for stores by default, so it looks like Shopify’s wording, and U2 may not even know it’s there. Not every store has it: [Allbirds](https://www.allbirds.com/robots.txt) doesn’t, even though it’s clearly a Shopify site, according to its cookie consent banner.

## Why I call it prompt injection

I’d asked about a ticket sale, and text on a website asked my agent to recommend a product I hadn’t asked about. If an agent goes along with that, it can sound like its own advice. I call it mild because the note is public and tells the agent to ask you before installing anything.

Claude Opus 5.5 told me about the note and said it was ignoring it:

My project’s instructions tell Claude to treat what’s on a page as data, not instructions, so that may have helped. I haven’t tested other agents, but there’s already decent protection against this, so I don’t think it’s a huge threat.

## Apparently, other sites also do this

In February, [Microsoft described](https://www.microsoft.com/en-us/security/blog/2026/02/10/ai-recommendation-poisoning/) companies hiding instructions in “Summarize with AI” buttons, so your assistant would remember them as a trusted source or recommend them first. It found 50 examples from 31 real companies in 60 days. Those are sneakier than Shopify’s note, because they’re hidden and try to change what your assistant remembers.

In April, [researchers who looked for prompt injection across 1.2 billion URLs](https://arxiv.org/abs/2604.27202) reported 1,040 cases promoting content or products, on 35 sites. Shopify’s note seems a bit more widespread than one company adding this to its own site, since it’s on at least six different brands’ stores.

## There are legitimate use cases

I’ve had overzealous scrapers hit my own personal websites, so I get why sites use robots.txt to push back. I don’t object to putting instructions for agents there, either. Shopify’s note also asks them to identify themselves, use its own tools and get the buyer’s permission, which all seems reasonable.

It’d be nice to have a semi-standard way to do that. People have tried: [llms.txt](https://llmstxt.org/) was proposed in 2024, but [Ahrefs checked about 38,000 sites that have one](https://ahrefs.com/blog/llmstxt-study/), and 97% of the files didn’t get a single request in May 2026.

What I object to is using those instructions to push marketing. I do think it’s a bit cunning of Shopify to promote its own product in the same note, especially when it reaches the agents careful enough to read robots.txt first.

## What I’m doing now

Nothing, for now, because I trust Claude and its filters. In Claude Code’s auto mode, [Anthropic says](https://www.anthropic.com/research/claude-code-auto-mode) one filter checks what the agent reads for prompt injection and warns it, and another checks actions, like commands, before they run. So this isn’t a huge issue for me.

If I used a non-Claude agent that didn’t filter its commands or MCP calls, I might set up a hook that runs on every turn and uses a very small, cheap classifier model to check the agent’s input for anything that looks like prompt injection. It wouldn’t be infallible, but it should catch many of the more obvious attempts.

## What this has to do with tickets

I think the irony is that scalpers’ bots are probably unaffected, because they wouldn’t even look at robots.txt. It’s the legitimate scrapers and researchers who run into notes like this.

Ticket sites have much stronger defenses than robots.txt, and [scalpers still get around them](https://scalperless.com/posts/why-ticketmaster-cant-out-tech-the-bots). That’s why I think the right fix is to target the incentives, rather than only trying to stop the bots. If [a price cap](https://scalperless.com/the-fix#point-1) means you can’t resell a ticket for much more than it cost, there’s a lot less reason to run a bot at all.

## How you can help

1. **Sign up** with your email or mobile number, and your ZIP (30 seconds). We’ll use it to show legislators how many of their own voters care, and let you know when it’s time to act.Start here
2. **Share** with a friend who also goes to events.
3. **Call or write** your legislator.[Here’s how](https://scalperless.com/contact-your-legislator) . A personal email or call, in your own words, beats a copied form letter.More effective
4. **Schedule a meeting** with a small group of fans from your district at your legislator’s local office.Most effective
5. **Donate.** If your legislator[backs a cap](https://scalperless.com/lawmakers) , a small donation to their own campaign helps them win, and shows them fans stand behind the people who stand up for fans.

Why this order? In 2010, congressional staff were asked what would have some or a lot of influence on an undecided lawmaker: 97% said visits from constituents, 88% personal emails, 86% phone calls and 51% form emails, according to the [Congressional Management Foundation](https://web.archive.org/web/20120710022523/http://www.congressfoundation.org/storage/documents/CMF_Pubs/cwc-perceptions-of-citizen-advocacy.pdf). That survey covered Congress, not state legislatures. Last checked December 1, 2026.

[Everything you can do, by how much time you have](https://scalperless.com/what-you-can-do#by-time)
