prsona
Get started
High: fix this week

Hidden spam links on your website: links visitors cannot see but Google can

Last reviewed

Someone has hidden their links inside your pages.

Hidden spam links are links to gambling, pharmacy, replica or similar sites that an attacker has added to your pages and then hidden, with styling that pushes them off screen, shrinks them or colors them to match the background. Visitors do not see them, but search engines read every link on a page. The point is to borrow your site's reputation to help the spam sites rank.

Why hidden spam links costs you customers

Search engines treat links hidden from people as manipulation, and they hold it against the page carrying them, not only the sites it points to. Your rankings can slip, the site can be marked as hacked, and the links are a sign that someone still has a way to change your pages. If they can add links, they can add a redirect or a fake payment page next.

What usually causes hidden spam links

  • A compromised plugin, theme or admin account used to edit page content or templates
  • A nulled (pirated) theme or plugin that ships with links built into its footer
  • Injected code in the database that adds links to every page as it is served
  • An old widget or footer credit whose supplier was taken over or sold on

How to check for hidden spam links yourself

  1. Open a page in your browser, select everything with Ctrl+A or Cmd+A, and look for highlighted text appearing in blank areas, often at the very bottom.
  2. Right-click the page, choose View page source, and search the source for words like casino, slot, viagra or replica.
  3. Compare the footer in the source with the footer you see on screen. Links in the source that do not appear on the page are the ones to ask about.
  4. In Google Search Console, the Links report lists the sites your pages link to most. Anything you do not recognize is worth checking.

How to fix hidden spam links

  1. Your developer finds where the links are added: a template file, a widget, a plugin, or rows in the database that inject them as each page is served.
  2. Remove the links and the code that adds them, and replace any nulled or unknown theme or plugin with a clean copy from its official source.
  3. Change all admin, hosting and database passwords, and update the platform, theme and plugins.
  4. Search the whole site, not just the page you noticed, since injected links are usually added to many pages at once.
  5. If Google flagged the site, request a review in Search Console once the links are gone.

How Prsona catches hidden spam links

As a scan reads your pages, Prsona looks at the links each one carries and flags links to known kinds of spam, such as gambling or pharmacy sites, naming the page and an example of what was found. It is raised as serious once the evidence is confirmed, and a single sighting is shown as an observation to look at.

Prsona looks for hidden spam links as part of hacked website detection and technical SEO monitoring.

See whether your pages are carrying links to someone else's spam.

Questions about hidden spam links

Can hidden spam links hurt my Google rankings?

Yes. Hiding links from visitors while showing them to search engines is against Google's spam policies, and the page doing it is the one that pays. Rankings can drop and the site can be flagged as hacked. Removing the links and the code that adds them is the fix.

How do hackers hide links on a website?

Usually with styling. The links are placed off the edge of the screen, shrunk to nothing, given the same color as the background or put inside a section that never displays. Some are only added when a search engine requests the page, so they are invisible in your browser even when you look at the source.

Sources