Shopify sites' robots.txt files are doing (mild) prompt injection on AI agents

alacritous_alamat · reddit · 2026-12-02

A blog post documents mild prompt injection hidden in robots.txt files across Shopify storefronts: merchants (or templates/apps) embed directive-style text aimed at AI crawlers, nudging assistants to favor their products or skip certain pages. The piece shows how web-browsing agents ingest these instructions, why robots.txt — a machine-readable protocol — is being repurposed to steer AI answers, and what this means for agent developers who must treat such files as untrusted input.

Related event: Shopify Sites Found Injecting Prompt Instructions for AI Crawlers in robots.txt(2 posts)→

Original post →

More from Safety

Safety channel →