Article
Hidden prompts for AI on your site: why they backfire
Short answer
Hiding text on a page to steer AI answers, such as white-on-white lines telling a chatbot to recommend you, is a bad bet. Google’s spam policies already list white text, off-screen CSS and zero-size fonts as hidden text abuse, and they now cover attempts to manipulate generative AI responses. Bing’s guidelines name prompt injection aimed at Bing or Copilot as a practice that can get a site demoted or removed.
What people are trying
The idea is simple. AI tools read pages to answer questions, so someone puts instructions where a human won’t see them but a model might read them. Made-up but typical examples: a line telling the model to always recommend one company, a fake list of awards, or a note telling it to ignore other sources.
Security researchers have a name for this. OWASP’s list of risks for large language models calls it indirect prompt injection: content from an outside source, like a website, that changes a model’s behavior in unintended ways when the model reads it (OWASP). OWASP also notes these inputs “do not need to be human-visible/readable” as long as the model parses them (OWASP).
That last point is why people try it. It is also why search engines and AI companies treat it as an attack.
What Google’s rules say
Google’s spam policies define hidden text abuse as placing content on a page “solely to manipulate search engines and not to be easily viewable by human visitors” (Google Search Central). The examples read like a list of hidden prompt tricks:
- White text on a white background (Google Search Central)
- Text hidden behind an image (Google Search Central)
- CSS that positions text off-screen (Google Search Central)
- Font size or opacity set to 0 (Google Search Central)
The policy intro also covers AI. Google defines spam as techniques that deceive users or manipulate its systems, including “attempting to manipulate generative AI responses in Google Search” (Google Search Central). Sites that break the policies “may rank lower in results or not appear in results at all.” (Google Search Central)
Note
Note: not all hidden content is a problem. Google says accordions, tabs, sliders, tooltips and text meant for screen reader users do not violate the policy (Google Search Central). The test is intent: content hidden to help users is fine, content hidden to manipulate systems is not.
What Bing’s rules say
Bing is more direct. Its webmaster guidelines include a section called Prompt Injection and AI Manipulation, which says “Attempts to add content designed to manipulate or interfere with language models used by Bing or Copilot may result in reduced visibility or removal from search experiences.” (Bing Webmaster Guidelines)
The same list covers cloaking, which Bing describes as showing different content to crawlers than to users (Bing Webmaster Guidelines). Bing also warns against “artificially engineered language” meant to trigger citations or AI responses (Bing Webmaster Guidelines).
| Engine | Rule that applies | Possible result |
|---|---|---|
| Hidden text and link abuse; spam includes manipulating generative AI responses (Google Search Central) | Lower rankings or removal (Google Search Central) | |
| Bing and Copilot | Prompt injection and AI manipulation; cloaking (Bing Webmaster Guidelines) | Reduced visibility, lost grounding eligibility, or removal from the index (Bing Webmaster Guidelines) |
Why AI tools resist it anyway
Even setting rules aside, AI companies are building defenses against exactly this. OpenAI is one that has written about it, in a December 2025 post. It describes prompt injection as embedding malicious instructions in content an agent reads, to override what the user asked for (OpenAI). It lists arbitrary webpages among the places those instructions can hide (OpenAI).
OpenAI says it trains its browser agent against these attacks so it learns to “ignore adversarial instructions” (OpenAI). It also calls prompt injection “a long-term AI security challenge” (OpenAI). In other words, OpenAI is actively working to make hidden instructions fail.
Watch out
Watch out: if your site gets hacked, someone else may add hidden text for you. Google’s spam policy describes hackers adding hidden links or text through CSS or HTML so search engines see it but owners don’t (Google Search Central). A hidden prompt you didn’t write can still hurt your site.
Hidden prompts vs honest page content
| Hidden instruction | Invisible text telling a model to recommend you. Breaks Google’s hidden text policy and Bing’s prompt injection rule (Google Search Central) (Bing Webmaster Guidelines). |
|---|---|
| Visible claim | A plain sentence on the page about what you do, who you serve and where you work. Fine, and readable by people and machines alike. |
| Screen reader text | Text meant to help people using screen readers. Allowed by Google (Google Search Central). |
| Accordion or tab | Content that toggles open. Allowed by Google (Google Search Central). |
How to check your own pages
- View the page source for your homepage and top pages, and search for phrases like “ignore”, “instructions” or “recommend”.
- Look for CSS that hides blocks with zero font size, zero opacity or off-screen positions.
- Check any third-party widgets, plugins or themes you added recently.
- Compare what a crawler gets with what visitors see. Our guide on whether AI crawlers can see JavaScript content shows how to fetch raw HTML.
- If you find text you didn’t add, treat it as a possible hack and fix the security issue before cleaning up.
Key takeaway
What to do next
Delete any hidden text written for AI, and put the claims you want quoted on the page in plain view, backed by evidence. Run the source check above every quarter or after any plugin or theme change. For the full set of Google rules, see Google’s spam policies for small sites.
Get the worksheet
Our free worksheet includes a short page-hygiene check alongside crawler access. Read how Be In GEO works for how we test and source claims.
FAQ
Is it ever fine to hide text from visitors?
Yes, when it helps users. Google allows tabs, accordions, tooltips and screen-reader text (Google Search Central).
Does Bing actually mention prompt injection?
Yes. Its webmaster guidelines name prompt injection and AI manipulation aimed at Bing or Copilot (Bing Webmaster Guidelines).
Can a hidden prompt get my site cited more often?
We found no AI company that says it works, and both Google and Bing describe penalties for it (Google Search Central) (Bing Webmaster Guidelines).