Deutsch
Deception & manipulation

Sneaky redirects

Also known as: sneaky redirecting

Sneaky redirects send users, search engines, or both to content they did not expect, or show users and search engines different content. Google lists them as a spam practice.

What does Google say?

Google describes the problem as using redirects maliciously to show users and search engines different content, or to show users unexpected content. Its examples are showing search engines one type of content while redirecting users to something significantly different, and showing desktop users a normal page while redirecting mobile users to a spam domain.

Redirects themselves are fine. Google names moving a site, consolidating pages, and redirecting logged-in users to an internal page as legitimate uses. What matters is intent. A sneaky redirect can run through server rules, a meta refresh, or JavaScript.

Hacked websites are a common source, because attackers add redirects that the owner never sees.

Redirect types compared
TypePermanent or temporary?Request methodEffect in GoogleHow reliably Google detects it
301 Moved PermanentlypermanentPOST may become GET when followedSignal that the target should become canonicalmost reliable (server-side)
308 Permanent Redirectpermanentpreservedsame as 301most reliable (server-side)
302 FoundtemporaryPOST may become GET when followednot used as a canonical signal for the target; other signals can still get it indexedmost reliable (server-side)
307 Temporary Redirecttemporarypreservedsame as 302most reliable (server-side)
Meta refresh, instant (0 s)permanent– (redirect inside the HTML, no 3xx status code)same as 301after server-side redirects
Meta refresh, delayed (> 0 s)temporary– (redirect inside the HTML, no 3xx status code)same as 302after server-side redirects
JavaScript (location)permanent– (redirect in the browser)same as 301, but only if Google renders the pageleast reliable: if rendering fails, Google may never see it

Google orders redirect types by how likely it is to interpret them correctly: server-side redirects first, JavaScript last. Request-method behaviour is defined in RFC 9110 (section 15.4). Sources: Google Search Central: Redirects and Google Search (last updated 2026-04-14); Google Search Central: How to specify a canonical URL (redirects as canonical signal); RFC 9110: HTTP Semantics, 15.4 Redirection 3xx. Last checked: .

Example

An injected script redirects only visitors who arrive from Google. The owner opens the page directly and notices nothing:

HTML
<script>
if (document.referrer.includes("google.")) {
  location.href = "https://spam.example/";
}
</script>

Sources

  1. Spam policies: sneaky redirects – Google Search Centraldevelopers.google.com
  2. Redirects and Google Search – Google Search Centraldevelopers.google.com

Last updated: