Your website

Is your lodging website hiding casino ads? How to check in 2 minutes

By Joshua Downey, GM of Comal Inn · November 17, 2026 · 5 min read

The short answer

Some hacked websites show casino spam to Google but not to the owner, so the site looks fine when you open it. I've found it on two small lodging websites so far. You can check yours in about two minutes with Google's own free tools. If you find spam, have your host close the way the hacker got in. Deleting the text you can see usually isn't enough.

What I found

Twice now, I've found casino spam hidden inside a small lodging website. Both turned up while I was checking sites for my lodging website studies. Both sites run on WordPress, and neither owner had any idea.

When you visit either site, it looks normal. The rooms, the photos, the story of how the owners got started. But in the page's code, the part Google reads, there's casino spam. On the most recent one, it was a block of Italian text promoting online casinos, with a link to a gambling site. The same text was also in the page's description, the short summary Google can show under a site in search results.

I'm not naming either property. The point isn't who got hit. It's that this kind of hack is built so the owner never notices, which means yours could have it too.

Why the owner can’t see it

Hackers want the spam to stay up as long as possible, so they hide it from the person most likely to remove it. This is called cloaking. Google's guide for hacked sites explains that cloaking shows different content to different visitors, so an owner can open a hacked page and see nothing wrong.

Sucuri, a website security company, wrote up a WordPress infection where casino spam only showed up for Google and other crawlers, not for people browsing the site.

  1. You and your guests see

    A normal page. Nothing looks wrong.

  2. Google sees

    The same page, plus spam only Google is shown.

  3. Searchers can see

    Spam under your name, and maybe a warning.

One page, three views · illustration

So “my site looks fine” doesn't mean it is. You have to look at it the way Google does.

Why it matters for bookings

For a small inn, cabin or campground, search results are often where a guest decides whether to click. This hack goes after exactly that spot.

  • Your search listing can show the spam. If the casino text lands in your page description, that's what Google can display under your name.
  • Google may add a warning. Google shows “This site may be hacked” under a site when it believes a hacker changed pages or added spam pages. It tells searchers not to visit the site while the warning is up, and the warning stays until the owner fixes the problem.
  • It isn't rare. Sucuri analyzed 422,741 sites hit by search spam in 2024 and found nearly 19% had gambling spam.

A guest who sees casino text or a hacked warning next to your name isn't going to book. Most won't tell you why, either.

The 2-minute check

You don't need any tech skills for this. Start with your homepage and About page, then any other page that matters to you.

  1. 1 Google search

    Type site:yourdomain.com casino

    Look for
    Any result you didn’t write

  2. 2 Rich Results Test

    View tested page, HTML tab, search “casino”

    Look for
    The word anywhere in the code

  3. 3 Search Console

    Open Security issues, then Performance

    Look for
    A warning, or casino searches

The 2-minute check · free, no tech skills needed
  1. Search Google for your own site plus “casino.” Type site:yourdomain.com casino into Google, using your own web address. If anything comes back that you didn't write, that's a red flag. Then try just site:yourdomain.com. It lists the pages Google knows about on your site, including any a hacker added. A page you don't recognize is worth a closer look. An empty casino search is good news, but it isn't proof, since Google may not have picked up the spam yet.
  2. Look at your page the way Google does. Open Google's Rich Results Test, paste in your page address and run it. Click View tested page, then the HTML tab. That's the code Google sees after the page loads. Press Ctrl+F (Cmd+F on a Mac) and search for “casino.” This works because Google fetches the page itself, so it gets whatever a hacked site shows Google.
  3. Check Google Search Console if you use it. Under Security issues, Google lists problems it has found on your site. Then open the Performance report and look at the searches people found you with. Casino or gambling searches you'd never expect are a warning sign. Google lists traffic from unrelated search terms as a common sign of a hack. If you've never set up Search Console, it's free and worth doing anyway.

If all three come back clean, you're in good shape. If any of them turn up something you didn't put there, keep reading.

If you find it

Don't just delete the casino text you can see and call it done. The spam usually comes back unless the way in gets fixed too. Google's own guide says to find out how the site was compromised to protect it from future attacks.

  1. Contact your web host or whoever manages your site today. Tell them what you found and where. A screenshot from the Rich Results Test helps.
  2. Change your passwords. That means your website login, your hosting account and any other admin accounts, with a different password for each. While you're in there, look at the list of admin users. Google lists new admin accounts nobody created as a common sign of a hack.
  3. Ask Google to recheck the site once it's clean. If Google flagged it, request a review under Security issues in Search Console. Google removes the hacked warning after it confirms the fix.

How to keep it from happening

This isn't only a WordPress problem. Any website that isn't kept up is a target. WordPress just runs a huge share of the web, which is exactly why automated attacks go after it first. The fix is the same as with a building you own. Regular upkeep.

WordPress's own security docs say the most important thing you can do is keep WordPress and every plugin and theme up to date. Here's the short list.

  • Turn on updates. Keep WordPress, plugins and themes current. Automatic updates make this easy, so ask whoever manages your site to check that they're on.
  • Delete what you don't use. Switching an old plugin or theme off still leaves it on your server. WordPress's hardening guide says to delete plugins you aren't using.
  • Only install plugins and themes from trusted sources. WordPress recommends sticking to its official directory or well-known companies. Choose ones that still get regular updates.
  • Use strong, unique passwords and two-step login. Do this for your website login and your hosting account, and for the account that holds your domain.
  • Keep admin logins to the people who need them. A former employee or old web designer with access is one more way in.
  • Run the 2-minute check every few months. It fits right into a simple upkeep routine, and it's the easiest way to catch a problem before your guests do.

Quick answers

How do I know if my website has been hacked?

Search Google for site:yourdomain.com casino, run your homepage through Google’s Rich Results Test and search its HTML tab, and check Security issues in Google Search Console. Anything you didn’t put there is a sign of a hack.

My site looks fine. Can it still be hacked?

Yes. This kind of spam is often hidden from normal visitors and only shown to Google, so the owner is usually the last to know.

Is this only a WordPress problem?

No. Any site that falls behind on updates can be hacked. WordPress sites get targeted most because there are so many of them.

Will Google tell me if my site is hacked?

Sometimes. If you use Google Search Console, it lists problems it finds under Security issues. Google may also show “This site may be hacked” in search results. Don’t count on either one catching it early.

Can I fix it myself by deleting the spam?

Deleting what you can see usually isn’t enough. Have your web host or whoever manages your site find and close the way the hacker got in.

Want me to look at your site?

Send me your website. I'll tell you what I'd fix first, for free.