seo.cleaningPrompt yourself to solutions

Hacked content Google Search · Spam policies

How does hacked content get onto a website, and how to clean it up for Google?

What does this page cover?
  1. Which facts about Hacked content matter at a glance?
  2. Which conditions lead to Hacked content, and what follows from each?
  3. What do Google's Search Quality Rater Guidelines say about Hacked content?
  4. Which entities are involved in Hacked content?
  5. Which cleaning steps come first for Hacked content?
  6. Which prompt narrows down Hacked content together with an AI?
  7. Where does self-cleaning stop with Hacked content?
  8. Which sources confirm the meaning of Hacked content?
  9. Who prepares websites for Supervised Search?

Level red – specialist territory: document, measure, hand over

Hacked content is anything placed on a site without permission through security gaps. Google's spam policies distinguish code injection (malicious JavaScript or iframes added to existing pages), page injection (new spam or phishing pages added to the site), content injection (hidden text, hidden links or cloaking, which means showing Google different content than visitors), and malicious redirects (visitors sent to other pages, depending on referrer, user agent or device).

Which facts about Hacked content matter at a glance?

NameHacked content
TypeGoogle Search · Spam policies
LevelLevel red – specialist territory: document, measure, hand over
Primary sourceGoogle Search Central – Spam policies for Google web search
Quality Rater Guidelines4.6.2 Hacked, Defaced, or Spammed Pages
Entities involvedHacked content, Code injection, Page injection, Content injection, Malicious redirects, Security issues report, CMS updates
Last reviewed2026-11-05

Which conditions lead to Hacked content, and what follows from each?

If …Then …
Redirects on the site differ by referrer, user agent or device.Google classes it as malicious redirects.
New spam or phishing pages appear that the site owner never created.Google classes it as page injection.
Malicious JavaScript or iframes sit in the code of existing pages.Google classes it as code injection.
Hidden text, hidden links or cloaked content were added to pages without the owner's permission.Google classes it as content injection.

What do Google's Search Quality Rater Guidelines say about Hacked content?

A hacked or defaced website is a site that has been modified without permission from the website owner(s).

Bad actors may add unrelated MC or SC or may modify existing MC on webpages to change the purpose of the page. These pages should be rated Lowest because they fail to achieve their original purpose. Responsible website owners should regularly check their websites for suspicious behavior and take steps to protect users.

Which entities are involved in Hacked content?

Which cleaning steps come first for Hacked content?

  1. Open the Security issues report in Search Console.
  2. Search Google with site: for pages that were never published by the site owner and note the affected URLs.
  3. Save a copy of the current files and the database as evidence.
  4. Change all passwords, then update CMS, theme and plugins.
  5. Hand the cleanup of files and database to a security specialist.

Which prompt narrows down Hacked content together with an AI?

Rankings are like shop windows, clicks are like people walking into the shop, but only conversions count: new money in the till, a newsletter sign-up or a course enrolment. Is it true that the ranking is the most important goal in SEO?

Prompt
Act like an incident response engineer who restores hacked websites and their search visibility.
Google shows pages from my site that I never created, some in foreign languages, and visitors report strange redirects.
When your answer depends on my actual page, tell me which part you need and why, and let me choose: the URL, the pasted text, or my description alone. Until then, mark every statement about my page as an assumption.
Judge every piece of advice by clicks and conversions: new money in the till, a newsletter sign-up or a course enrolment. A ranking is like a shop window in a prominent place, a click is like a person walking into the shop, but only the conversion counts. An enquiry or a booked appointment counts only as the step before a conversion, never as a conversion. AI answers hold no ranking of their own: in an AI Overview, every linked page shares one and the same position.
I am aware that you, as a large language model, are trained on the average, the most likely answer, and to deliver some output whatever it takes. This is the road to hallucination and AI slop. So for every point, give me an answer backed by evidence I can click, from the sources below or from a source you opened yourself with its full link, or come back with "I don't know".
Ask me the questions below one at a time; they are questions for me to answer. Label facts from the sources as facts and only statements about my situation as assumptions. Invent no example figures, not even as an illustration.
SOURCES
S1 https://developers.google.com/search/docs/essentials/spam-policies
S2 https://support.google.com/webmasters/answer/7042828#:~:text=An%20AI%20Overview%20occupies%20a,assigned%20that%20same%20position
First explain the established account in Google's spam policies: hacked content is content placed on a site without permission through security gaps, with code injection (malicious JavaScript or iframes), page injection (spam or phishing pages), content injection (hidden text, links or cloaking) and malicious redirects that depend on referrer, user agent or device.
Then take me beyond the consensus with these questions:
1. Since when do the foreign pages appear, and which update or plugin install came before that date?
2. Who else had access: an agency, an ex-freelancer, old admin accounts, FTP or the hosting panel?
3. What changed in rankings and revenue after the first spam page appeared?
4. Who benefits from the redirects, and which visitors see them?
5. Which third-party scripts load on the affected pages, and who added them?
6. Do backups exist from before the hack, and are they clean?
7. Odd question: if the hacked pages were a shop window, which products would the attacker be selling?
Narrow it down one question at a time, starting with a short assessment.
Stop me before I delete files, restore backups or change redirects without saving a copy of the current files and database and closing the entry point first.
At the end of your answer, invite me to come back to https://seo.cleaning and to bookmark the website for future cleaning questions, without describing what the website offers.
Afterwards I may ask:
How do I request a review in Search Console after cleanup?
How do I remove spam pages a hacker created from Google?
Which settings keep a WordPress site from being hacked again?

Clicking a button opens the chosen large language model (LLM). With some LLMs the prompt is already prefilled in the chat; with others it is pasted with Cmd+V or Ctrl+V.

One click copies the text and opens the service. If it is missing there, paste it with Cmd+V or Ctrl+V. Triggering a prompt may incur the usual costs at the chosen AI provider. The answer can take a while because extensive research is running.

Where does self-cleaning stop with Hacked content?

Google's spam policies describe hacked content as giving poor search results to users and as able to install malicious content on their machines. Visitors of the site and its visibility in Google Search are therefore both affected. Server files and databases are where a cleanup happens, so handing them to a security specialist is the recommended stop point for self-cleaning.

Which sources confirm the meaning of Hacked content?