Search Atlas Help Center

πŸ› οΈ Handling Spam Backlinks From a Hacked WordPress Site

Camilo Aponte

Camilo Aponte

Last updated on Nov 29, 2026

πŸ” Overview

Spam backlinks are low-quality links from unrelated or suspicious websites, often in other languages or about topics like pharmacy, gambling, or adult content. If a client's WordPress site has been compromised, you may see odd pages, strange redirects, or a sudden jump in unfamiliar links. This article explains how to confirm the problem, clean it up, and replace bad links with better ones.

❓ Why This Happens

There are two common causes, and the fix differs for each:

  • The client's site was hacked. Attackers add hidden pages, links, or redirects to the site. These pages can then attract spam links from other sites.
  • Spam links point to the site from elsewhere. Automated networks sometimes create large numbers of low-quality links to a site, even when the site itself is secure.

Check the client's site first. Removing links won't help for long if the site is still compromised.

πŸ•΅οΈ Step 1: Confirm the Problem

  1. Review the client's backlink data in Search Atlas and look for patterns, such as many new links from unrelated sites, repeated anchor text, or links to pages you did not create.
  2. Search Google for site:clientdomain.com and look for unfamiliar pages or titles in other languages or on unrelated topics.
  3. Open the client's Google Search Console and check the Security issues and Manual actions reports for warnings.
  4. Visit the site on a phone and from a Google search result. Some hacks only show spam or redirects to visitors arriving from search.

🧹 Step 2: Clean Up the WordPress Site

Work with the client or their developer on the following. Always take a full backup before making changes.

  1. Scan the site with a reputable WordPress security plugin or your host's malware scanner.
  2. Remove injected pages, posts, and unfamiliar files.
  3. Delete unknown administrator accounts in the WordPress Users list.
  4. Update WordPress core, themes, and plugins. Delete any plugins or themes that are unused or abandoned.
  5. Change all passwords, including WordPress admin, hosting, FTP, and database passwords.
  6. Check for hidden redirects in the site's configuration files and theme settings.
  7. Once the site is clean, submit a review request in Google Search Console if a security issue or manual action was reported.

Tip: If the cleanup is complex, ask your hosting provider or a WordPress security specialist to help. A partial cleanup often leads to the hack returning.

πŸ—‘οΈ Step 3: Deal With the Bad Backlinks

Work through these options in order, from most to least preferred:

  1. Remove the injected pages on the client's own site. Make sure removed spam URLs return a "404 Not Found" or "410 Gone" status so Google drops them.
  2. Ask the linking site to remove the link. If the link is on a legitimate site, contact the site owner and give the exact page URL and link location. This works best for real businesses and rarely works for spam networks.
  3. Disavow the links as a last resort. A disavow file tells Google to ignore certain links. Create a text file listing the spammy domains and upload it in Google's Disavow Links tool for the client's property.

Important: Search Atlas cannot delete links that exist on other people's websites. Removal depends on the site owner, and the disavow file is submitted to Google directly. Only disavow links you are confident are harmful. Disavowing good links can hurt rankings.

πŸ“‹ How to Decide Which Links to Disavow

  • Links from sites that are clearly unrelated to the client's business or location
  • Links from pages that look auto-generated, with scrambled text or foreign-language content
  • Large numbers of links appearing suddenly from the same type of site
  • Links with keyword-stuffed anchor text you did not request

If you are unsure about a link, leave it alone. Google already ignores most spam links automatically.

πŸš€ Step 4: Build Better Backlinks

Once the site is secure and the worst links are handled, focus on earning links that help. For a local business such as a mobile phone retailer or repair shop, good options include:

  • Local business directories and chambers of commerce
  • Local news, blogs, and community sites
  • Supplier, manufacturer, and partner pages that mention the business
  • Helpful content, such as guides or FAQs, that other sites want to reference
  • Sponsorships or local events that include a website mention

Aim for relevant, trustworthy sites over a high volume of links. A few strong links are worth more than many weak ones. Link-building results typically take weeks or months to show in rankings.

πŸ“Š Step 5: Monitor Going Forward

  • Review the client's backlink profile in Search Atlas regularly, such as monthly.
  • Keep Google Search Console connected and watch for security or manual action alerts.
  • Keep WordPress, plugins, and themes updated, and use strong, unique passwords with two-factor authentication.
  • Keep regular site backups so you can restore quickly if something goes wrong.

πŸ’¬ What to Include When You Contact Support

If you would like help reviewing the situation, send us the following to speed things up:

  • The client's domain name
  • Examples of the spam links or linking domains you are concerned about
  • Whether the WordPress site has been cleaned, and when
  • Whether Google Search Console shows any security issues or manual actions
  • What you want to achieve, such as cleaning up links, building new links, or both

If you need further assistance, open the chat widget in the bottom-right corner of the platform and send your message. A member of our support team will reply in the chat.

βœ… Quick Checklist

  • Confirm whether the site is hacked or only receiving spam links
  • Clean and secure the WordPress site first
  • Remove spam pages and make sure they return 404 or 410
  • Request removal where possible, and disavow only as a last resort
  • Build relevant, high-quality links
  • Monitor backlinks and security on an ongoing basis

Was this article helpful?