Pharma spam links that only Googlebot sees: the Joomla kit we found on three sites

In October 2026 we cleaned three Joomla 3.10.12 sites with the same infection. Visitors saw a normal site. Google saw pharmacy links, and on one site that was the only sign.

Written on 27 October 2026

What the site showed, and to whom

The kit decides who it is talking to. For a browser it adds nothing. For a request with a Google user agent, or from the IP ranges of Google, it adds a block of pharmacy links to the page: 197 of them on the Italian home page of one site.

The agency opens the site and sees nothing wrong, and so does the client, while Google indexes the links. The first clue is often a message in Search Console or odd titles in the search results.

Where the kit hid

A folder images/web/ with an index.php that serves the pharmacy pages. Joomla never puts PHP files in images/, so a PHP file there is a strong sign on its own.

A rule in the .htaccess of the root that sends the pharmacy addresses to images/web/index.php.

On one site, a file templates/yootheme/html/lnk.php with the links, and one line at the end of the template's index.php that included it. The file was dated September 2026 and made no outgoing calls: the links were all inside.

On all three sites the core files were identical to the official 3.10.12 package and the database was clean.

How it got in

Two sites had Form Maker, 3.5.9 on one and 3.6.5 on the other. It is an extension abandoned years ago, with a known SQL injection and no fixed release, and it was probably the way in.

The third site had no Form Maker. Its action log showed 477 failed logins on one Super User in nine days, then a successful one. Three weeks later that account installed a component and uninstalled it four minutes after. The admin account had 79,101 failed logins in fifteen months.

Deleting the folder is not enough

On two of the sites someone had already deleted images/web. On one, the line in the template and its 197 links were still there. On the other, the rule was still in .htaccess, commented out, and a spam link sat in the template's index.php.

A cleanup has to find every piece of the kit, and close the way in.

How we cleaned them

  1. Backup first

    A full backup of files and database before changing anything, so every step can be undone.

  2. Compare the core

    Every core file against the official Joomla package. Here the core was intact, so the search moved to images, the template and .htaccess.

  3. Remove the kit

    The images/web folder, the rewrite rule, lnk.php and the line that included it.

  4. Close the way in

    Uninstall Form Maker, block the Super Users nobody knows, set new passwords and two-factor login for the accounts that stay.

  5. Check what Google sees

    Fetch the home page again as Googlebot: no links left. Then ask Search Console to crawl it again.

What SitePing checks now

  • The SEO shield of the Complete plan fetches the pages as Googlebot and compares them with what visitors get. On one site it was the only alert.
  • From agent 0.48.0 the file scan recognises this kit: links printed only for Google crawlers, and the .htaccess rule that sends pharmacy addresses to a PHP file.
  • A PHP file in images/ raises an alert, and Form Maker shows up as a vulnerable extension with no fix. On Joomla 3, Active Shield blocks the Form Maker SQL injection.

Questions

Why can't I see the links on my site?

The kit shows them only to requests that look like Google: its user agent or its IP ranges. Your browser gets the normal page. A check that fetches the page as Googlebot from inside the site, like the SEO shield, sees them.

Is the site safe once the links are gone?

Only when the way in is closed too. With Form Maker still installed, or a Super User password that can still be guessed, the kit can come back.

Try SitePing on your client sites.

Connect your first sites today and see what SitePing finds on them.

  • Every Complete feature except backups
  • Up to 10 sites and 50 AI credits a month
  • No credit card needed to start
  • At the end you choose a plan or move to Free, and nothing is charged
Start the 30-day free trial

Already have an account? Log in. Prefer to look at one site first? Free read-only audit.