Guide

Hacked Site SEO Spam: Finding and Removing It

Hackers often add spam pages and hidden links to a site without changing how it looks to you. Finding them takes a crawl, a few Google searches and a close look at your files.

Hacked site SEO spam is content or code someone has secretly added to your site to make money from your rankings. It might be pages selling pills or gambling, hidden links to other sites, or redirects that only fire for Google visitors. To remove it, you find every injected file, clean it out, close the way in, and then ask Google to review the site.

How to tell if your site carries spam

The owner often sees nothing wrong. The spam is built to hide from you and show to search engines. So you check from Google's side.

Warning signs

Signs of hacked site spam

Odd search results

Searching site:yourdomain.com shows pages about products you never sold.

Foreign language pages

Japanese or other language pages you did not create, often with strange URLs.

Sudden traffic drop

Clicks fall soon after the spam appears and Google loses trust in the site.

Security warning

A notice in Search Console or a red warning page when visitors arrive from Google.

Hidden outbound links

Links to unrelated sites tucked into your footer or content, invisible to visitors.

Unknown files or users

New admin accounts, unfamiliar files, or changed plugin and theme code.

Two checks are quick. Run a search for your domain with the word site and a colon in front of it, then add a spam term like casino. Then open your homepage in a browser that sends Googlebot as its user agent, or use the URL Inspection tool and view the live page. Cloaking spam shows one page to people and another to Google.

Where to look in Search Console

Open the Security and Manual actions section. Check Security issues and Manual actions for hacked content notices. Then check Pages under Indexing for URLs you do not recognise, and the Performance report for queries unrelated to your business. Spam often shows up there first, as impressions for terms you never targeted.

Step by step removal

1. Take a backup of the hacked state

Keep a copy before you change anything. It is your evidence, and it helps you find how they got in.

2. Crawl the site and list every URL

A crawl shows you pages the CMS menu never lists. Compare the crawl with your sitemap and your own page inventory. Anything extra deserves a look.

3. Remove injected content and code

Delete spam pages, check theme and plugin files for added code, look in the database for injected posts and links, and check for odd rules in the htaccess file. Restoring clean files from a trusted copy is safer than hand editing when you can.

4. Close the way in

Update the CMS, themes and plugins. Remove anything abandoned. Change every password: hosting, CMS, database, FTP and email. Delete unknown admin users. A cleanup without this step is usually undone within days.

5. Make spam URLs return the right status

Removed spam pages should return a 404 or 410 status so Google drops them. Do not redirect them all to your homepage.

6. Ask Google to review

If Search Console shows a Security issues warning or a manual action, fix everything first, then request a review and describe what you removed and how you secured the site. Our guide to detecting a negative SEO attack helps you tell a hack from a link attack.

Hacked or attacked: which is it?

QuestionHackLink attack
Where is the spam?On your own siteOn other sites linking to you
First place to lookSecurity issues report, crawlBacklink reports
Main fixRemove files, close entry pointDocument links, disavow if justified
Needs developer accessYesUsually no
Two different problems that both get called negative SEO.

Not sure which one you have? Our short answer on how to check if your site was hacked walks through the first checks.

When to call for help

Get help when the spam keeps coming back, when your developer cannot find the entry point, or when you have a manual action and a rejected review. Reinfection usually means a backdoor was missed.

We work from evidence: what was added, when, and how it got in. Our negative SEO cleanup service covers the full job, and a free SEO triage will tell you where you stand.

FAQ

Questions owners ask us

Will Google warn me if my site is hacked?

Sometimes. Search Console has a Security issues report that lists hacked content Google found, and a manual action can appear under Security and Manual actions. But many hacks are never flagged, so do not wait for a warning.

Do I need to rebuild the whole site?

Not always. Often you can remove the injected files, update everything, change every password and restore clean copies of the changed files. A full restore from a backup made before the hack is the safest route when you can pinpoint the date.

How long until the spam results disappear from Google?

Once the spam pages are gone or return a proper error, Google drops them as it recrawls. That can take days or weeks depending on how many there are. Submitting a review in Search Console, when a warning exists, speeds up the decision.

Get started

Tell us where it hurts.

Your site, what changed and when. We reply with a first read on the cause.