Gambling Spam on Your Website? How to Check for It and Clean It Up

By · 11 November 2026 · 5 min read

Illustration of a browser window with a list of search results, one result flagged in red under a magnifying glass, next to a broom and a green check mark

Your website can show up on Google with a title like "slot gacor", even though everything looks normal when you open it yourself. No gambling pages, no strange links.

This is what makes injected online gambling spam (known in Indonesia as judol) so easy to miss. Attackers often show the gambling content only to search engines, while owners and ordinary visitors see a normal website. This article explains how to check whether your website has gambling spam injected into it, how to clean it, and how to stop it from coming back.

What a website with injected gambling spam looks like

It can take different forms. The most common ones:

  • Injected pages. Hundreds of new pages with addresses like /slot-gacor-hari-ini/ or /togel/ that you never created.
  • Hidden links. Text and links to gambling sites hidden with code, so visitors do not see them but search engines read them.
  • A modified sitemap. Gambling page addresses are added to sitemap.xml, or robots.txt points to a sitemap on another domain, so those pages get into Google quickly.
  • Cloaking. The gambling content is shown only to Googlebot. Ordinary visitors see a normal website.
  • Unknown accounts and files. New admin accounts in the CMS, or new files on the server that nobody recognises.

Google calls this hacked content, and it may show warnings or demote the affected pages. So the problem is not only about your reputation, but also about where your website appears on Google.

How to check: start from the outside

1. Use our free check. The Gambling Spam Check opens your home page, robots.txt and sitemap like an ordinary visitor. It looks for hidden gambling text, gambling terms on the home page, links to gambling pages, gambling addresses in the sitemap, and an unusual robots.txt. The result is either "signs found" or "no signs seen in what we can see". The second result does not mean your website is clean, because the tool does not pretend to be Google and cannot see cloaking, pages behind a login, or files on the server.

2. Search on Google. Type into Google: "site:yourdomain.com slot", then repeat with the words "gacor", "togel" and "judi". If pages you never created show up, your website has most likely been compromised. Look at the titles and descriptions in the results too, not only the addresses.

3. Open Google Search Console. Check three places:

  • Security issues report. Google lists here any injected content it has found on your website.
  • Manual actions report. See whether there is an action for spam.
  • Page indexing report. Look for strange addresses among the indexed pages, and notice if the number of pages suddenly jumps.

4. See the page as Googlebot does. In Search Console, open the URL Inspection tool, enter a page address, click Test live URL, then click View tested page. Compare it with the page source you see in a normal browser. If the Googlebot version contains gambling text but the browser version does not, that is a sign of cloaking.

5. Open sitemap.xml and robots.txt. Open yourdomain.com/sitemap.xml and yourdomain.com/robots.txt. Look for addresses containing gambling terms, or a sitemap that points to another domain.

How to check: from the inside

  • The CMS user list. Look for admin accounts you do not recognise.
  • Recent pages and posts. Look for pages your team did not create, including ones saved as drafts or hidden.
  • Files on the server. In your hosting file manager, sort files by date modified. Watch for new PHP files in the uploads folder or in folders that are rarely touched.
  • .htaccess and index.php. On WordPress and similar hosting, attackers often add redirect rules to .htaccess, or code to index.php, header.php, footer.php and functions.php. Look for code you did not write.
  • Plugins and themes. Note any plugin or theme you did not install, that has not been updated for a long time, or that came from an unofficial source.

How to clean it up

  1. Make a backup first. Save a copy of the files and database exactly as they are now, to help trace what happened and in case something is deleted by mistake. See also the 3-2-1 backup rule.
  2. Change every password. CMS admin, hosting or cPanel, FTP, database and the admin email. Turn on two-step verification on every account that supports it.
  3. Remove the injected content. Delete the gambling pages, unknown files, unrecognised admin accounts, and added code in .htaccess or theme files.
  4. Update the CMS, plugins and themes. Remove the ones you do not use. Also remove pirated (nulled) plugins and themes, because they often carry a back door.
  5. Fix the hole, not just the symptoms. If you do not find how the attacker got in, the spam can come back a few days later. Check the software versions on your server with the PHP and Node.js version check, and ask your hosting provider to help you look at the access logs.
  6. Tell Google. Once the site is clean, open the Security issues report in Search Console and choose Request Review. Resubmit the correct sitemap in the Sitemaps report. For gambling pages that still show in search results, use the Removals tool. It only hides pages temporarily, so make sure those pages are really gone from your website.

Search results do not change right away. Google needs to crawl your website again, and that can take time. Nobody can guarantee when the gambling pages will disappear from Google.

How to prevent it

  • Update the CMS, plugins and themes regularly. Use our monthly WordPress security checklist.
  • Only use plugins and themes from official sources.
  • Give admin accounts only to people who really need them, and remove accounts that are no longer used.
  • Turn on two-step verification for every admin.
  • Keep regular backups somewhere separate from the server.
  • Set up basic security headers. Check your website with the security headers check.
  • Run the gambling spam check and a "site:" search from time to time, so injected spam is spotted early.

A short checklist

  1. Check the website with the gambling spam check and a "site:" search on Google.
  2. Review the Security issues, Manual actions and Page indexing reports in Search Console.
  3. Compare what Googlebot sees with a normal browser using the URL Inspection tool.
  4. Check sitemap.xml, robots.txt, CMS users, new files and .htaccess.
  5. Back up first, then change every password and turn on two-step verification.
  6. Remove the injected content, update everything, and find the way in.
  7. Request a review in Search Console and resubmit the sitemap.

Deleting gambling pages is relatively quick. What matters is closing the door the attacker used to get in.

Does the spam keep coming back, or have you not found the way in yet? Through penetration testing, we can look for the hole and help you close it, with your written permission. Read also company website security: the basics you need to have in place, or contact us.