大网数据广告活动
网站运营与故障问答

What causes "redirect notice" in Google search?

· 52CE 我爱测

Occasionally, I get "Redirect Notice" pages when I click on some Google search results. My website does have a landing page redirect, but no redirect notice shows up when I click on it in Google search. I couldn't find any info a…

问题原文

原帖链接 · clickbait · CC BY-SA 4.0

Occasionally, I get "Redirect Notice" pages when I click on some Google search results. My website does have a landing page redirect, but no redirect notice shows up when I click on it in Google search. I couldn't find any info about what types of redirects cause Google to display the warning. What exactly are the causes of Google's redirect notices, and what can webmasters do to prevent them from showing up when visitors click on their site in Google?

已采纳解答

原帖链接 · MrWhite · CC BY-SA 4.0

I think there may be (or may have been) a few scenarios that can trigger this "redirect notice" from the Google SERPs. Some of these may have been historical "glitches" judging by some of the articles I stumbled across.

I have certainly seen this "redirect notice" several times directly from Google search results in recent times, however, I've not been able to find such a search result whilst researching this question. I have always associated this with a malicious redirect. Although whether this has been truly malicious or just an implementation mishap I don't know.

However, one easily repeatable way to trigger this "redirect notice" is to try to use Google's "internal" redirect service. That is, using the q (or url - see below) parameter on the /url URL (this would seem to be how search result URLs used to be constructed - see below). For example:

This instructs Google to redirect to the URL specified in the q URL parameter. Apparently, according to this article (Feb 2007), Google used to trigger a redirect without prompting. This was naturally open to abuse, so Google introduced the prompt:

When Google constructs such a URL (eg. in the search results), they incorporate a cryptic hash in the URL that validates the target URL, thus avoiding the prompt.

However, Google no longer appears to use the q parameter in the SERP URLs these days. Instead, they appear to use a url parameter, together with a cryptic hash. Copying*1 and sharing the entire URL results in the same "redirect notice" (I now realise that this is what @ShayanDavoodi was referring to in his answer! +1), for example:

(As pointed out in @ShayanDavoodi's answer, this probably helps prevent Google SERP CTR being manipulated. Although you don't necessarily need the explicit "redirect notice" for that - it certainly alerts developers not to try.)

However, attempting to modify the value in the url parameter results in a wholly invalid target URL, but still triggers a "redirect notice". For example:

*1 Copying the intermediary search result URL (that Google uses for tracking) is not "easy". If you simply "Copy link address" in the browser, then you naturally copy the target URL. The intermediary URL is not present in the source HTML, it is injected using JavaScript at the point the user clicks on the link. Using the browser's developer tools you can monitor the network traffic to grab the intermediary redirect/tracking URL. But it's not something the user would seemingly be able to "accidentally" copy in modern browsers.

Reference:

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-08-05)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。