website security

Spam pages on your website: how to find, remove and recheck them

Spam pages or hidden links can mean someone got into your site. Search your domain, save the list, clean the files, fix the way in, then request a review.

You search your own business name and find pages for products you have never sold. Or a customer sends a screenshot, or a tool flags links on your site that point to casino and pharmacy pages you never wrote. Spam pages on your website like these can mean someone added content without your permission. The way in may be a plugin with a known flaw, a stolen password or another access path.

That is a bad moment, and it is fixable in a set order. Save the list of strange addresses without opening them. Work out which pages are injected. Clean the files, the database and the accounts. Close the way in. Then recheck and ask Google for a review.

Taking down the visible page is only half the job. There are two tracks: cleaning up what Google has indexed, and repairing the weakness that let the content in. If you skip the second one, the spam can return.

Key Takeaways

Save the list first

Search your domain with site: plus words like casino or pills, check Search Console, and keep every suspicious address in a document before you delete anything.

A missing menu link proves nothing

Compare each address with your CMS, sitemap, database, files and a clean backup, because a plugin can create pages on purpose.

Cleaning has two tracks

Remove injected pages, links, accounts and files, then repair the way in with updates, clean replacement files and new credentials.

Recheck, then ask Google

Request the Security issues review only after the whole site is clean. Google says reviews may take a few days to several weeks.

Google describes hacked content as material placed on your site without your permission, through a security weakness. Its hacked content help page lists examples such as pharmaceutical terms, unrelated links and spam text added to existing pages. Google's spam policies cover the cloaking trick that often goes with them.

Cloaking means showing search engines one thing and people another. That is why your own browser can show a normal page while Google lists something else. A clean-looking homepage does not tell you the site is clean.

Search Console's Security issues report can show the type of problem, the date it was detected and sample addresses. The sample may not be the full list. Treat it as a starting point.

Sucuri's 2023 hacked website report looked at 39,594 sites its own incident-response team cleaned and found SEO spam on 20.30% of them. That is Sucuri's figure for its own caseload, not a rate for all websites. It does show that this is a recognized pattern with a known cleanup path.

If the problem is bigger than spam, such as a locked-out admin account or a site that is down, start with our first 24 hours after a hack steps and come back here for the spam cleanup.

How do I find every spam page without opening them?

Start in Google, not on the suspicious pages. A few searches show what Google has indexed for your domain, and you never have to click a result. Replace yourdomain.com with your own address.

Searches that show injected pages
SearchWhat it can show
site:yourdomain.comEvery page Google has indexed, to compare with the pages you know you own
site:yourdomain.com casinoGambling pages added to your domain
site:yourdomain.com pillsPharmacy pages, and the same for words like viagra or loans
site:yourdomain.com plus an unfamiliar foreign-language wordPages in a language you never published in
site:yourdomain.com intitle:casinoPages whose titles carry the spam term
site:yourdomain.com inurl:wp-Addresses containing wp- to compare with your own WordPress setup
Searchsite:yourdomain.com
What it can showEvery page Google has indexed, to compare with the pages you know you own
Searchsite:yourdomain.com casino
What it can showGambling pages added to your domain
Searchsite:yourdomain.com pills
What it can showPharmacy pages, and the same for words like viagra or loans
Searchsite:yourdomain.com plus an unfamiliar foreign-language word
What it can showPages in a language you never published in
Searchsite:yourdomain.com intitle:casino
What it can showPages whose titles carry the spam term
Searchsite:yourdomain.com inurl:wp-
What it can showAddresses containing wp- to compare with your own WordPress setup

Look for unfamiliar titles, descriptions, languages, products, authors and dates. Open a suspicious result only with care. These searches show what is indexed. They cannot prove the files and database are clean.

Then work through Google's own tools, which follow the steps in its hacked site guidance and its page on site: searches and the Page indexing report:

  1. Security issues: Open the report in Search Console and read any examples it lists.
  2. Page indexing: Compare the indexed addresses with the pages you know you own.
  3. URL Inspection: Run it on one suspicious address, then look at both the indexed view and a live test.
  4. A link crawl: Crawl your site, export every internal and external link, and review destinations you do not recognize. This is how hidden outbound links show up.
  5. Server logs: Check what Googlebot is asked for and what it receives, since cloaked content may not show in an ordinary browser. Google's security guidance recommends keeping an eye on logs.

Copy every suspicious address into a document before you change anything. Once the list is saved, you can prove later that each one is gone.

A closed notebook and a pencil lying beside a neat stack of blank index cards on a wooden desk.
Write the full list down first, so you can check each address off at the end.

How do I tell an injected page from one my site created on purpose?

Some unfamiliar pages are legitimate. A plugin, a store or a booking tool can create pages with addresses you never typed. Deleting one of those breaks something real, so identify the page before you remove it. Google's guide to diagnosing a hacked site is a good companion for this step.

A page is more likely injected when it shows signs like these:

  • Unrelated subject: A casino or pharmacy page on a plumbing site, for example.
  • Unfamiliar address pattern: A string of letters or numbers you have never used.
  • Unnatural repetition: The same keyword stuffed into the title and text.
  • Foreign-language text: A language your business does not use.
  • Mismatched dates or authors: A publish date or author name that does not fit your site.
  • Missing from the CMS: The page is in Google but not in your page list.

A page made by a plugin usually has a clear purpose, a consistent template, a recognizable address pattern, working links in your site and a matching plugin or database record.

Compare each address with your CMS, sitemap, database, server files, a clean backup, analytics and your publishing history. A page that appears in the indexing report but cannot be traced to anything you or a tool you installed created deserves a closer look. Do not delete a page only because it is missing from your menu.

Two blank cardboard folders side by side on a desk with a closed laptop behind them.
Match each unfamiliar address to something you or a plugin created before you delete it.

What does a full cleanup have to cover?

A cleanup removes the unwanted content and the access that let it in. If only the page goes, the backdoor, the extra account or the altered plugin can bring it back. Google's hacked content help and the WordPress hardening guide describe the same core work.

First, keep a clean backup, plus a copy of the affected files and logs if you can. Then work through this list:

  • Remove what does not belong: Unauthorized pages, database records, links, scripts, administrator accounts, scheduled tasks and malicious files.
  • Replace altered files: Swap changed core, theme and plugin files for clean copies.
  • Prune and update: Delete plugins and themes you do not use, then update everything that stays.
  • Repair the way in: Fix the weakness that allowed the content in, whether that was a plugin, a login or a permission setting.
  • Rotate credentials: Change hosting, CMS, database, FTP or SFTP, email and administrator passwords.
  • Add a second step: Turn on two-factor authentication wherever it is offered.

NIST's incident response guidance, SP 800-61 Rev. 3, published in April 2025, says the same thing in general terms. Cleanup means removing malware, disabling breached accounts and fixing the vulnerability that was exploited, followed by recovery from clean backups and tighter controls.

Plugins deserve special attention. Wordfence's 2024 annual WordPress security report found that 96% of the vulnerable software types disclosed that year were plugins, so an outdated or abandoned plugin is a likely place to look. Keeping them current is the kind of routine job our website maintenance work covers.

If you cannot reach the server files or find a clean backup, your host may be able to help. A hosting plan with backups and file access makes this far less painful, which is a good reason to look at web hosting before the next incident, not during it.

A small brass padlock and a ring of new keys resting on a sealed envelope on a worn wooden surface.
Fresh credentials matter as much as deleting the spam, because the old ones may still work.

How do I recheck the site, and when do I ask Google for a review?

A normal browser view does not prove the site is clean, because attackers can hide content from owners. Recheck with evidence, using the list you saved earlier.

Signs the cleanup worked
CheckWhat a good result looks like
Each saved spam addressReturns a 404 or 410, or redirects only to a legitimate replacement page
A fresh crawl of your linksNo unexpected outbound destinations
Users, files, records and scheduled tasksNo unauthorized items remain
SoftwareCore, plugins, themes and server components are current
CredentialsPasswords and sessions have been rotated
Forms, analytics and key pagesEverything still works as before
CheckEach saved spam address
What a good result looks likeReturns a 404 or 410, or redirects only to a legitimate replacement page
CheckA fresh crawl of your links
What a good result looks likeNo unexpected outbound destinations
CheckUsers, files, records and scheduled tasks
What a good result looks likeNo unauthorized items remain
CheckSoftware
What a good result looks likeCore, plugins, themes and server components are current
CheckCredentials
What a good result looks likePasswords and sessions have been rotated
CheckForms, analytics and key pages
What a good result looks likeEverything still works as before

The status codes matter. A 404 or 410 tells Google a page should not exist, and Google's redirect guidance covers when a redirect fits. A redirect to a real, related page is fine. A redirect that sends spam addresses to your homepage is not a repair.

Do not block spam addresses in robots.txt. As Google's robots.txt introduction explains, the file controls crawling and does not remove a page from the index. Blocking can also stop Google from seeing that the page is gone. If you want help testing forms, redirects and key pages after cleanup, that is what quality assurance testing is for.

When the whole site is clean, open Search Console's Security issues report and select Request a review. Describe what you removed and how you fixed the entry point. Google says hacked-site reviews can take from a few days to several weeks, so plan for a wait. Then watch the Page indexing report for the spam addresses to drop out, and see our Search Console email guide for what the follow-up messages mean. If rankings need a closer look afterward, search engine optimization is the next step.

A magnifying glass resting on top of a closed laptop beside a blank checklist pad on a clean desk.
The recheck is what shows the cleanup worked, so do not skip it.

When is a focused cleanup enough, and when has the job grown?

A focused cleanup, a software update, a credential reset and a round of checks may be all your site needs. If the damage is a few injected records on a platform that can still be supported, that is a reasonable scope, and it does not call for a redesign or an open-ended retainer.

The job is larger when signs like these show up.

Focused fix or bigger job?
SituationLikely scope
One outdated plugin and a handful of injected pagesFocused cleanup, update and recheck
Spam keeps coming back after cleanupLarger: a backdoor or hidden access remains
No trustworthy backupLarger: a rebuild from a clean baseline may be needed
Several unauthorized accountsLarger: credentials and access paths need a full review
Unsupported or abandoned softwareLarger: replace components, not just clean them
Server-level access concernsLarger: involve the host
Nobody can say how far it goesStart with a written audit to define the scope
SituationOne outdated plugin and a handful of injected pages
Likely scopeFocused cleanup, update and recheck
SituationSpam keeps coming back after cleanup
Likely scopeLarger: a backdoor or hidden access remains
SituationNo trustworthy backup
Likely scopeLarger: a rebuild from a clean baseline may be needed
SituationSeveral unauthorized accounts
Likely scopeLarger: credentials and access paths need a full review
SituationUnsupported or abandoned software
Likely scopeLarger: replace components, not just clean them
SituationServer-level access concerns
Likely scopeLarger: involve the host
SituationNobody can say how far it goes
Likely scopeStart with a written audit to define the scope

No one can promise a fixed price, instant removal from Google or permanent immunity without examining your site. Before you pay for ongoing work, ask for the evidence, the scope, what is included, what is excluded and the follow-up checks in writing. Our malware removal cost guide shows how to read a quote, and our write-up on WordPress EtherHiding malware covers one WordPress malware pattern to check for.

Check your spam cleanup plan

Pick an answer to begin.

1. You find a casino page on your domain in Google. What should you do first?

2. A page is in Google but not in your menu. What does that prove?

3. When should you request a Security issues review?

Frequently Asked Questions About Removing Spam Pages From Your Website

Why are random pages appearing on my website?

A weakness or a compromised account may have let someone add pages or links without your permission. Check Search Console's Security issues report and compare indexed addresses with your real pages.

Can a hacked site look normal?

Yes. Attackers can cloak content or place it only on new addresses, so your homepage may look fine while Google lists something else.

Should I just delete the spam pages?

Remove the unauthorized content, but also find and repair the access path that created it. Deleting the page alone leaves the way in open.

Will robots.txt remove them from Google?

No. Robots.txt controls crawling and does not erase indexed pages, and blocking an address can stop Google from seeing that it is gone.

When should I request a Google review, and how long does it take?

Ask after the entire site is clean and the vulnerability is fixed. Google says hacked-site reviews may take from a few days to several weeks.

Do I need to rebuild the site?

Not always. It depends on how far the compromise goes, the condition of the software and whether you have a trustworthy clean backup to restore.

Final Thoughts

Strange pages and hidden links on your domain usually mean someone added content through a weak point. Save the list of addresses, tell injected pages from legitimate ones, clean the files, database and accounts, and fix the way in. Then recheck with a fresh crawl and the status codes, and ask Google for a review once the whole site is clean.

Done in that order, the cleanup gives you a site you can trust again, a record of what changed and a lower chance of the same spam returning. Search results may take a while to settle, but you will know what you did and why.

If you would rather not do the file and database comparison alone, Web Leveling can review your site and tell you what the cleanup needs, with a website security audit that sets out the scope in writing. If a focused fix is all it takes, we will say so. We work with small and medium businesses across the country and overseas. Tell us what you are seeing on your site, and we will help you decide what comes next.

Terms

Spam cleanup words in this post

Tap a term to see what it means.

Hacked content. Content placed on your site without your permission through a security weakness.

Cloaking. Showing search engines different content from what people see, which can hide spam from the site owner.

Injected page. A page added to a site by an attacker, often missing from the CMS page list.

Security issues report. A Search Console report that lists hacked-content problems, with sample addresses and a way to request a review.

URL Inspection. A Search Console tool that shows how Google sees one address, including a live test.

Robots.txt. A file that tells crawlers which addresses they may fetch; it does not remove indexed pages.