# Hidden AI instructions: prompt injection on web pages

> Text that tells AI assistants what to say about your page is prompt injection. Learn why it backfires, how it gets onto pages, and how to remove it.

Source: https://thatonecrawler.houseofnamus.com/checks/hidden-ai-instructions · Updated 2026-10-22 · By Suman Debnath (https://sumandebnath.houseofnamus.com)

Hidden AI instructions are text aimed at AI assistants that visitors never see, such as a line in a hidden element telling them to recommend the site. It's a form of prompt injection. AI tools discount pages that do it, and hidden text breaks Google's spam policies. Writing about prompts is fine; giving orders to models is not.

## Why it matters

Some sites hide instructions in invisible elements, HTML comments or the prompt inside a “Summarize with AI” link, hoping assistants will repeat them or remember the site as a trusted source. Others pick them up through compromised plugins or copied content. Either way, it undermines trust in the page and the whole site.

## How to fix it

1. Open the page details to see the exact text we flagged and where it sits.
2. Remove hidden instructions entirely, including ones inside comments and AI share links.
3. If visible text was flagged and it's a quoted example, put it in a code block or quotation.
4. If you didn't add it, check for a compromised plugin, theme or injected script.
5. Rescan to confirm it's gone, then earn AI citations with clear answers and facts.

## Frequently asked questions

### Will an article about prompts or prompt injection get flagged?

No. Mentioning a system prompt, or showing an attack inside a code block or quotation, isn't an instruction. We flag commands addressed to AI assistants, and treat hidden ones far more seriously than visible ones.

### Does prompt injection work on AI search?

Major AI tools now filter it, and it can backfire by flagging the page as untrustworthy. It's not worth the risk.

### How does That One Crawler protect its own AI tools?

Page text is fenced off and treated as data, never as instructions, and instruction-like text is reported to you instead of being followed.

## Related checks

- [AI search readiness: how to get your blog cited by AI (GEO and AEO)](https://thatonecrawler.houseofnamus.com/checks/ai-search-readiness)
- [Structured data for blogs: missing, broken and incomplete markup](https://thatonecrawler.houseofnamus.com/checks/structured-data)

---

That One Crawler: Free SEO audit tool for blogs. Crawl your whole site to find broken links, thin content, duplicate titles, keyword cannibalization and AI search gaps. Run a free audit at https://thatonecrawler.houseofnamus.com. All pages: https://thatonecrawler.houseofnamus.com/llms.txt
