Spam rules · 2 min read

Cloaking in SEO is spam, and hackers use it too

Cloaking means giving search engines and people different content with the aim of gaming rankings and misleading visitors, and Google treats it as spam.

What it means for your Maryland business

Cloaking is showing Google one version of a page and showing people another, so that the page ranks for things visitors never see. Google treats it as spam, and sites that break its spam policies may rank lower or drop out of results. For most Maryland businesses the risk comes from two directions: a hacked website, where the intruder shows spam only to search engines so the owner never notices, and members-only or paywalled content, which a local news site, trade association, continuing education provider or subscription newsletter has to set up correctly.

To the owner and to customers, the site of an HVAC company in Hagerstown looks normal. A hacker has slipped in pages and keywords that appear only when Google's crawler requests them, so Google's index of the site fills up with casino and pill terms. Odd search queries in Search Console or strange titles when the owner searches the business name are worth investigating. The owner should have whoever runs the site remove the injected code and hidden pages, following Google's guidance on fixing hacked sites.

Don't assume Google sees what your browser shows. Have your web person check what the server sends to Google's crawler, not just what a browser shows. Another mistake is gating members-only content so that Google can't see it; Google's line is that gated content is fine when Google can see the full content, just like a subscriber, and the site follows its Flexible Sampling guidance. And if your site relies on JavaScript or images to carry key information, make that content readable to search engines the honest way rather than serving them a separate text version.

Maryland's Attorney General guidance under the Personal Information Protection Act says businesses must implement and maintain reasonable security procedures and practices suited to the personal information they hold and to their nature and size. Ask whether patching your site's software is part of yours.

Maryland laws and agency guidance cited above:

What to do this week

3 steps. Ticks are saved to Your plan on this device.

Open Your plan

01
Keep your website software, plugins and themes up to date to make a hack less likely.
02
If you suspect a hack, have whoever runs your website follow Google's guidance on fixing hacked sites.
03
If you run a paywall or members-only area, make sure Google can see the full content and that you follow Google's Flexible Sampling guidance.

In Google's words

“Cloaking refers to the practice of presenting different content to users and search engines with the intent to manipulate search rankings and mislead users.”

Google, exact quote · Spam Policies for Google Web Search · checked against this page 2026-11-28

What Google says

Cloaking means giving search engines and people different content with the aim of gaming rankings and misleading visitors, and Google treats it as spam. Its cases include serving a travel page to search engines but a discount-drugs page to people, and adding keywords only when the request comes from a search engine. Google notes hackers often cloak so owners won't spot the hack, and says a paywall isn't cloaking when Google can see the full gated content and the site follows its Flexible Sampling guidance.

Report an error