Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Footer link spam and hidden sitewide links: how to find and fix

SEO-120Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Footer link spam is a set of links in your footer (or another sitewide area like the sidebar or header) that exist to pass ranking value to other sites, not to help visitors. They appear on every page, so one injected block creates thousands of outbound links.

There are two common forms. Visible spam: long lists of keyword links such as casino, pills or loans, or a long list of 'partner' sites. Hidden links: links tucked away with CSS (display:none, font-size:0, white text on white, or positioned far off screen) so people never see them but crawlers do.

Why it costs you leads or sales

The direct impact is usually low, but the risk is real. Spam links can lead search engines to doubt your site's quality, dilute your own internal links, and in bad cases trigger a manual action that drops pages from results. Injected links are also often a sign of a hack, which can lead to malware warnings, redirects and lost trust.

How a hidden footer link turns into lost traffic
  1. Site is compromised or a bad theme is installedFooter code is added
  2. Hidden links on every pageOutbound spam links sitewide
  3. Search engines see low quality or spamRankings or trust drop
  4. Fewer visitors reach your forms and checkoutFewer leads and sales

The break happens at the injection. Everything after it is a consequence.

Illustrative effect on organic visitsExample numbers
Illustrative effect on organic visits (example)Before: 1,000 visits per week; Spam live, month 1: 900 visits per week; Spam live, month 3: 650 visits per week; After clean-up: 850 visits per week03837671,000900650850BeforeSpam live, month 1Spam live, month 3After clean-upvisits per week

Example: organic visits to a site before the spam appears, while it is live, and after clean-up. Numbers are illustrative only.

How to check if your site has it

Find footer and hidden links
  1. Look at the footer as a visitor

    Scroll to the bottom of several pages. Note any links you do not recognise, odd keywords or long link lists.

  2. View the page source

    Open the page, press Ctrl+U (Cmd+Option+U on Mac) and search for display:none, visibility:hidden, font-size:0, left:-9999px and text-indent:-. Check any links nearby.

  3. List all outbound links

    In the browser console on any page, run the snippet below to list links that point to other domains and are not visible.

  4. Crawl the site

    Run a crawler such as Screaming Frog (free up to 500 URLs). Open the Outlinks report and sort by destination domain. Domains that appear on every page are sitewide links.

  5. Check Google Search Console

    Open Security & Manual Actions and look for 'Manual actions' and 'Security issues'. Also search Google for site:yourdomain.com with words like casino, viagra or loan to see if spam pages are indexed.

  6. Compare with a clean source

    View source as Googlebot would see it using the URL Inspection tool in Search Console, then 'View crawled page'. Hidden links may show there even if you cannot spot them in the browser.

List external links that are hidden or tiny (paste in the browser console)javascript
const here = location.hostname;
const rows = [...document.querySelectorAll('a[href^="http"]')]
  .filter(a => new URL(a.href).hostname !== here)
  .map(a => {
    const r = a.getBoundingClientRect();
    const s = getComputedStyle(a);
    const hidden = s.display === 'none' || s.visibility === 'hidden' || parseFloat(s.fontSize) < 4 || r.width < 2 || r.height < 2 || r.left < -1000 || s.opacity === '0';
    return { href: a.href, text: a.textContent.trim().slice(0, 40), hidden };
  });
console.table(rows);
console.log('Hidden external links:', rows.filter(r => r.hidden).length);

How to fix it

Treat injected links as a possible security incident first. Removing the visible links without removing the cause means they will return.

Remove the links and the cause
  1. Back up the site

    Take a full backup of files and database before changing anything, so you can roll back if needed.

  2. Find where the links come from

    Check footer widgets, theme footer files, menus, plugins and scripts. Search the files for the spam domain or for suspicious code such as base64_decode, eval( or gzinflate.

  3. Remove the links at the source

    Delete the widget, menu item, plugin or code block that outputs them. Do not just hide them with CSS.

  4. Replace nulled or untrusted themes and plugins

    Reinstall themes and plugins from the official source or the vendor. Delete unused ones.

  5. Secure access

    Change all admin, hosting, FTP/SFTP and database passwords. Remove unknown admin users. Turn on two-factor authentication where available.

  6. Keep only useful footer links

    Keep links people actually use: contact, privacy, terms, key services or categories. Add rel="sponsored" to any paid link and rel="nofollow" or ugc where fitting.

  7. Ask Google to re-check if needed

    If Search Console shows a manual action or security issue, fix it and then submit a review request explaining what you removed.

Where to look on each platform
  1. Check widgets and menus

    Go to Appearance > Widgets (or Site Editor > Patterns/Template parts > Footer) and Appearance > Menus. Remove unknown links.

  2. Check theme and plugin files

    Open Appearance > Theme File Editor and inspect footer.php and functions.php for unknown code. Under Plugins, delete anything you do not recognise.

  3. Scan and reinstall

    Run a security scan with a reputable plugin, then reinstall WordPress core under Dashboard > Updates > Re-install version. Check Users for unknown administrators.

Footer before and after clean-up

Before

  • 40 unrelated keyword links on every page
  • Some links hidden with font-size:0
  • Injected by an unknown plugin
  • Possible security warning in Search Console

After

  • 6 useful links: contact, privacy, terms, key services
  • Nothing hidden from visitors
  • Unknown plugin removed and passwords changed
  • Search Console clean

How to confirm it's fixed

Confirmation checklist
  • View source on the home page, a service page and a blog post: the spam domains no longer appear
  • The console snippet reports 0 hidden external links
  • A fresh crawl shows no outbound domains repeated on every page, other than ones you chose
  • URL Inspection > View crawled page in Search Console shows a clean footer
  • site: searches show no spam pages
  • Search Console shows no manual action or security issue
  • No unknown admin users, plugins or scripts remain

How to prevent it happening again

Prevention checklist
  • Never use nulled or pirated themes and plugins
  • Keep your CMS, themes and plugins updated and delete unused ones
  • Use strong unique passwords and two-factor authentication
  • Give people the lowest access level they need and remove old users
  • Keep regular backups you have tested
  • Ask agencies and freelancers to list any links they add to the footer
  • Review footer links and outbound domains every quarter
  • Turn on email alerts in Search Console for security and manual action issues

How FunnelGuard handles this

FunnelGuard does not check for footer link spam or hidden sitewide links today. It is a possible future check.

What FunnelGuard does do nearby: a robot visitor runs your real journeys (lead forms, checkouts, booking and chat buttons) on a schedule and checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads arrive. If injected code or a hack breaks a form, a button or your tracking, that failure can show up there, with a screenshot and a likely cause. That is a side effect, not a footer link check.

Questions people ask

What is footer link spam?

Footer link spam is a block of unrelated or keyword-stuffed links repeated in the footer of every page, usually to pass ranking value to other sites. It may be visible or hidden with CSS. It often comes from a hack, a nulled theme or old SEO work.

Are footer links bad for SEO?

No, normal footer links such as contact, privacy, terms and key categories are fine and help visitors. The risk comes from long lists of unrelated keyword links, paid links without rel="sponsored", or hidden links. Keep the footer short and useful.

Why are there hidden links in my website footer that I did not add?

The most common causes are a hacked site, a pirated theme or plugin, or a past SEO provider. The links are often hidden with CSS so you do not notice them. Search your files and plugins for the spam domain, remove the source, then change all passwords.

How do I find hidden links on my website?

View the page source and search for display:none, font-size:0 and left:-9999px, or run a console script that lists external links and checks if they are visible. A crawler such as Screaming Frog can also show outbound domains that repeat on every page. Check Google's cached view with URL Inspection too.

Does Google penalise hidden links?

Google's spam policies list hidden text and links as a violation, and link schemes are also covered. Consequences can include lower rankings or a manual action. Removing the links and filing a reconsideration request can restore your standing.

How do I remove spam links from my WordPress footer?

Check Appearance > Widgets or the Site Editor footer, Appearance > Menus, footer.php and functions.php, and your plugin list. Delete the source of the links, reinstall WordPress core and themes from official sources, remove unknown admin users and change all passwords.

Is a 'Powered by' credit link in my footer spam?

A single credit link to a theme or builder is not usually a problem. It becomes a concern if it uses keyword-rich anchor text, is hidden, or you were paid for it without marking it rel="sponsored". If in doubt, remove it or add rel="nofollow".

Can FunnelGuard detect footer link spam?

Not yet. It is a possible future check. FunnelGuard monitors your forms, checkouts, tracking and lead delivery, so a hack that breaks those journeys can show up, but you need a crawler or security scanner to find the links themselves.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.