Site AI Auditby Internet Solutions

Cloaking and Sneaky Redirects: What Google Treats as Spam

২২ অক্টোবর, ২০২৬8 মিনিটে পড়াSEO-এর মূল বিষয়
Cloaking and Sneaky Redirects: What Google Treats as Spam

Short answer: Cloaking means showing search engines different content or addresses than the ones human visitors receive. A sneaky redirect sends visitors to a different page than the one a crawler saw. Both break Google’s spam policies and can lead to a manual action or removal from results. They are also a classic sign of a hacked website, where the attacker shows spam to Google and a normal page to the owner. Checking what Googlebot sees compared with what you see is the best way to find them.

What cloaking is

Search engines send a crawler to read your pages and decide what to show in results. Cloaking happens when the server recognises that crawler, usually by its user agent or network address, and gives it content that real people never see. A page might show a long article about a product to the crawler, while visitors land on a sales page for something unrelated.

The aim is always to rank for something the real page does not deserve. Google’s rule is simple: visitors and crawlers must receive the same content. When they do not, trust is broken, and the penalty is serious.

Some forms are obvious, such as text hidden by being the same colour as the background. Others are technical, such as a script that serves a keyword-stuffed page only when the request looks like Googlebot. All of them fall under the same policy.

What sneaky redirects are

A redirect sends a visitor from one address to another. Redirects are a normal part of every website, and we explain the usual types in our guide to 301 and 302 redirects. A redirect becomes sneaky when it is used to deceive:

The test is not the technology but the intention and the result. If the person arriving from a search result sees something other than what Google showed, the redirect is a problem.

What is not cloaking

Several common practices are fine, and it helps to know the boundaries so that you do not worry about normal behaviour.

How cloaking appears on hacked sites

Most owners who find cloaking did not create it. Attackers who gain access to a website often add code that checks who is asking. If the visitor is the site owner, or a logged-in administrator, the site looks normal. If the request comes from a search engine, the code injects hidden links or whole spam pages, selling pills, counterfeit goods or gambling. If the visitor arrives from a search result, they may be redirected to a scam.

That design delays discovery. You open your site and see nothing wrong, while Google lists thousands of unfamiliar pages under your domain. Our articles on the Japanese keyword hack and on signs that a website is hacked describe typical patterns. If you suspect an infection, follow the hacked website recovery steps rather than deleting files at random.

Poorly written plugins or themes can also create redirects by accident, for example a mobile plugin that sends all phone users to the home page, or an advertising script that opens another site. Even without bad intent, the effect for visitors and crawlers can look the same.

How to check your own site

  1. Use the URL Inspection tool. In Search Console, inspect an important address and run the live test. Compare the rendered page and screenshot with what you see in your browser. Our guide to the URL Inspection tool shows where to click.
  2. Search your own domain. Type site:yourdomain.com into Google and scan the titles. Pages you never created, in other languages or on unrelated topics, are a warning.
  3. Check Search Console messages. A manual action for cloaking or sneaky redirects appears in the Manual actions report. See our guide to manual actions for what to do.
  4. Request a page with a crawler user agent. A command-line tool such as curl can send a Googlebot-style user agent. Compare the response with a normal request. Differences in size or content need an explanation. Note that real Googlebot can be verified only by its network address, so this is a quick hint and not proof.
  5. Test from a phone through a search result. Some redirects trigger only for visitors who arrive from Google on mobile. Search for your page on a phone, tap the result and see where you land.
  6. Review logs and recent file changes. Unexpected changes in theme files, in .htaccess or in the database point to the source. Our guide to reading access logs helps with the first look.

Why it never pays off

Cloaking can look attractive to someone who wants quick rankings, but the trade is poor. Search engines compare what they crawl with what real visitors reach, using separate crawlers, rendering tests and user feedback. When they find a gap, the usual result is a manual action or an automatic demotion, and the lost visibility can last for months. Recovery needs a clean site, an honest explanation and patience.

There is also a business cost that has nothing to do with rankings. Visitors who are redirected to spam lose trust in the brand, browsers may show a red warning page, and email from the domain can be blocked once it lands on a blocklist. For a small business, a few weeks of lost reputation can cost far more than any short-lived ranking gain. The sensible policy is to show everyone the same page, and to describe differences openly with the tools that exist for them, such as hreflang and structured data.

How to fix and prevent it

If the cause is a hack, clean the site fully: remove injected code and unknown files, replace core files with fresh copies, change all passwords and keys, update software and close the original entry point. If the cause is a plugin or script, remove or replace it and test again. Once the site is clean, request a review in Search Console if there was a manual action, and explain what you changed.

Prevention is mostly ordinary security: keep software updated, remove abandoned plugins, use strong unique passwords with two-factor sign-in and keep backups you can restore. Our WordPress security checklist collects the main steps.

Finally, set a monthly habit. Open your site on a phone from a search result, check Search Console for new messages and look at the number of indexed pages. A sudden jump in indexed pages that you did not publish is one of the earliest signs of trouble.

What Site AI Audit can and cannot tell you

Site AI Audit crawls up to 50 pages of your site the way a search engine does. It reports redirects, redirect chains, broken links, titles and descriptions, and pages blocked by robots.txt or noindex, so unexpected redirects on your main pages would show up in the results. It requests pages as an ordinary crawler, so it cannot prove that other crawlers or visitors from search results see something different; that comparison remains a manual check. You can run a free check of your website or see the plans.

Related reading

The bottom line

Cloaking and sneaky redirects mean that Google and visitors are not shown the same thing. Legitimate practices such as language redirects, responsive design and honest A/B tests are fine. When you find a difference you did not create, treat it as a security incident first and an SEO problem second, then clean the site, close the entry point and verify what Google sees.

FAQ

Is serving different content to mobile users cloaking?

Not when the content is equivalent and the same rules apply to crawlers and visitors. Responsive design avoids the question completely.

Can a hack cause cloaking without my knowledge?

Yes. Attackers often show spam only to search engines and keep the site normal for the owner, which delays discovery for weeks.

Will Google penalise me for cloaking I did not create?

It can still apply a manual action or demote pages, because the policy concerns the result. Cleaning the site and requesting a review is the way to recover.

Is a geolocation redirect sneaky?

Not if crawlers and visitors in the same location are treated the same, and users can still reach other versions. Use hreflang to describe regional pages.

How do I see what Googlebot sees?

Use the live test in the Search Console URL Inspection tool and compare the rendered page with your browser.

#Hacked website#Redirects#Technical SEO
নিজের ওয়েবসাইট চেক করুন — ফ্রি।আপনার ওয়েবসাইটে কী ঠিক করতে হবে — আর কোথা থেকে শুরু করবেন।
বিনামূল্যে শুরু

ব্লগ থেকে আরও

সব আর্টিকেল →
Internet Solutions

আমাদের টিমের আরও কিছু

Internet Solutions-এর তৈরি। আমাদের অন্য প্রোডাক্টগুলোও ব্যবহার করে দেখুন — প্রতিটি আলাদা ভাবে আপনার সময় বাঁচায়।

internet-solutions.net ↗
01সোশ্যাল মিডিয়ায় অটো-পোস্টিং
PostRSS

আপনার RSS ফিডের নতুন পোস্ট স্বয়ংক্রিয়ভাবে Facebook, X, LinkedIn, Telegram এবং আরও ৬০+ নেটওয়ার্কে চলে যায়।

ফ্রি প্ল্যান · ২০১৪ থেকেদেখুন →
02ওয়েবসাইটের জন্য AI লাইভ চ্যাট
Talkmio

আপনার ওয়েবসাইট আপনার নিজের কনটেন্ট থেকে, ভিজিটরের ভাষায়, ২৪/৭ উত্তর দেয়।

ফ্রি প্ল্যান · কার্ড লাগবে নাদেখুন →
03AI সহকারী
Ask Mio

চ্যাট, কোড, ডিজাইন, লেখা ও গবেষণা। প্রতিটি কাজের জন্য Mio সেরা মডেল বেছে নেয়।

ফ্রি প্ল্যানদেখুন →
04ব্লগ ও সোশ্যাল মিডিয়ার জন্য AI অটোপাইলট
AI Blog Autopilot

AI ২,০০০–৩,০০০ শব্দের SEO আর্টিকেল লেখে এবং প্রতিটি ৫৮+ সোশ্যাল নেটওয়ার্কে শেয়ার করে।

প্রথম ৩টি আর্টিকেল ফ্রিদেখুন →
05গভীর SEO ক্রল
Site SEO AI Audit

AI সার্চে দৃশ্যমানতাসহ ৭টি ক্ষেত্রে পূর্ণ SEO ক্রল, প্রভাব অনুযায়ী সাজানো সমাধানসহ।

প্রথম অডিট ফ্রিদেখুন →
06RSS ও প্রোডাক্ট ফিড
RSS Feed Creator

যেকোনো ওয়েব পেজ থেকে RSS তৈরি করুন, সঙ্গে Google ও Meta-র জন্য নিজে থেকে আপডেট হওয়া প্রোডাক্ট ফিড।

ফ্রি প্ল্যানদেখুন →
07ওয়েব ডেভেলপমেন্ট ও SEO
Internet Solutions

ওয়েবসাইট, ই-শপ ও কাস্টম সিস্টেম — আমাদের টিম ডিজাইন করে, তৈরি করে এবং চালায়।

২০১১ থেকেদেখুন →