Service
Hacked-site spam URL cleanup
When a site is compromised, attackers often create thousands of spam pages that get indexed under your domain. Removing them from search is only the second step. The first is making sure the door is closed, because spam that returns after cleanup is the most common failure we see.
What we mean by hacked-site cleanup
Compromised sites show familiar symptoms: unfamiliar URLs in the index with pharmaceutical, gambling or counterfeit-goods titles, a sudden spike in indexed pages in Search Console, spam snippets when you search for your own site, warnings from a browser or from Google, or pages that show different content to search engines than to visitors. This service covers the search-visibility side of recovery. Google maintains security documentation for site owners, and Search Console may surface a Security Issues report where it has detected a problem.
We are not an incident response team. Cleaning malware from your server, rotating credentials, patching a vulnerable plugin and restoring from a clean backup need a person with access to your hosting. We coordinate with whoever does that work, and we will say when we believe the security fix is incomplete, because indexing cleanup done on a still-vulnerable site is wasted effort.
What we do
- Triage. You tell us what you have observed. We confirm you own the site and ask whether the security side is being handled.
- Map the spam. We list what is indexed using the Page indexing report, URL Inspection samples, and sitemap review. Spam usually has patterns: a path prefix, a query parameter, a file naming scheme, or a set of subdirectories. Finding the pattern is what turns an unmanageable list into a tractable plan.
- Check for cloaking. Attackers sometimes serve spam only to crawlers. We compare what a search crawler receives with what a visitor sees, using Search Console's URL Inspection live test rather than guesswork.
- Return the right status. Once the injected files or database entries are removed, those URLs should return 404 or 410. Google treats both the same way and drops such URLs from the index. If server rules are used to answer 410 for the spam pattern, we help write them precisely so legitimate pages are not caught.
- Clean sitemaps. Injected sitemap files and entries are removed, and a clean sitemap is resubmitted. See sitemap cleanup for deindexing.
- Use removals where helpful. The Removals tool accepts prefixes, which can hide a spam directory quickly, but temporarily. It is useful while the permanent 404 or 410 signals are crawled.
- Verify and report. We monitor indexed counts in the tools over an agreed period and record what changed.
Why spam comes back
Reinfection is typically caused by an unpatched plugin or theme, stolen credentials that were not rotated, a backdoor file left behind, a malicious cron job, or a compromised hosting account that hosts several sites. Search Console may also have an unauthorised owner added by the attacker. We recommend that you audit the users and permissions list, and verification tokens, as part of recovery. We can list what to look for, but only you or your host can fix what sits on the server.
What search engines may still do
Even after a clean fix, spam URLs may stay visible for some time, particularly URLs that have been linked from other compromised sites. Google's process of recrawling and dropping removed URLs is gradual, and we cannot compress it. If your site received a manual action or security warning, a review request is made by you in Search Console after cleanup; we can prepare the explanation, but the review is Google's decision.
Bing
Bing indexes compromised sites too. Using Bing Webmaster Tools, we check the equivalent reports and use the Bing tools available to verified owners to request removals of spam URLs where they are offered. The same underlying fix, 404 or 410 responses and a closed vulnerability, is what makes it last.
Limits and honesty
We do not guarantee that a security warning will be lifted or that traffic will recover to previous levels. Recovery depends on the search engines, on the extent of the compromise, and on the site's state before it. We will not promise a date.
If you suspect a compromise, request a quote and tell us what you are seeing.
Questions about this service
Can you remove the malware itself?
We focus on search visibility. We will coordinate with your developer or host on server cleanup and tell you what to ask them, but we do not claim to be an incident response provider.
Should the spam URLs return 404 or 410?
Either works for Google, which treats them the same. We usually prefer 410 for a clear pattern so intent is explicit, and apply it carefully so legitimate URLs are unaffected.
Why do I need to fix the vulnerability first?
Because if the cause remains, new spam pages will be created and indexed again after the old ones are cleaned.
Related reading
- Why deindexed pages reappearCommon causes of returning URLs and how to stop them.
- 410 vs 404 vs 301 for removed pagesChoosing the right status code when pages are removed.
- Sitemap cleanup for deindexingWhy sitemaps matter during removals and how to keep them honest.
- Search Console Removals tool explainedWhat the Removals tool does, what it does not, and how long it lasts.