SEO spam and cloaking: casino and pharma links only Google can see

Updated 2026-10-16 · 6 min read · by the IsHacked team

Slot gacor, online casino, cheap pills: spam campaigns buy rankings by planting links on thousands of legitimate sites. They hide them so the owner doesn't notice and remove them.

Compare your site with what Googlebot sees

The three forms it takes

Check it yourself

diff <(curl -s https://example.com/ | grep -o 'href="https\?://[^"]*' | sort -u) \
     <(curl -s -A 'Googlebot/2.1 (+http://www.google.com/bot.html)' https://example.com/ | grep -o 'href="https\?://[^"]*' | sort -u)

Links that appear only in the Googlebot version are cloaked. Also search Google for site:example.com casino, site:example.com slot and site:example.com viagra.

Some cloaking checks Google's real IP addresses, which no outside test can imitate. Search Console's URL Inspection → Test live URL → View tested page fetches from Google itself and shows the HTML Google receives.

Clean up

  1. Find the code that decides who gets the spam: search theme and plugin files and the database for user-agent checks (Googlebot, HTTP_USER_AGENT) next to output of links or pages.
  2. Remove spam pages, links and sitemaps, and every backdoor that let them in (see the cleanup checklist).
  3. Check Search Console for unknown owners and sitemaps, then request a review if the site was flagged.

Keep watching

SEO spam is profitable, so the same campaigns come back to the same sites. Comparing the Googlebot and browser versions of your homepage and sitemap every day catches a reinfection within a day instead of after the rankings drop.

FAQ

What is cloaking?

Serving different content to search engines than to people. Hacked sites use it to show spam links or pages to Googlebot while visitors and the owner see the normal site.

Will Google penalise my site for hacked spam?

Google can flag the site as hacked in search results and in Search Console, and spam pages dilute rankings. Once the spam is removed and the site is clean, you can request a review in Search Console.

Related guides

The Japanese keyword hack: detect it, remove it, keep it out

Google shows Japanese titles for your site? How the Japanese keyword hack works, how to confirm it, and how to clean WordPress and Search Console.

How to check if your website is hacked

12 practical tests to tell if a website or WordPress site is hacked: cloaked spam, mobile-only redirects, injected scripts and exposed files.

Hacked WordPress cleanup checklist: every place malware hides

Step-by-step cleanup for a hacked WordPress site: backdoors in mu-plugins and uploads, fake plugins, cron, database payloads and rogue admins.

Send feedback

A bug, an idea, a question about this page: anything. It goes straight to the founder.