如何隐藏链接到站点分析的链接来源? [英] How can I hide a link's origin from the linked-to site's analytics?

查看:536
本文介绍了如何隐藏链接到站点分析的链接来源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在谷歌搜索一段时间,但无法找到答案。

I've been googling for a while now, but wasn't able to find an answer to this.

我想要完成的是以下内容:

What I want to accomplish is the following:

假设我有一个我从搜索引擎等隐藏的网站,而且几乎只能通过直接URL访问。我只希望我发送链接的人看到该网站。

Let's say I have a website that I hide from search engines etc. and that is pretty much only accessible through the direct URL. I want only people whom I send the link to see the site.

在我的网站上,我谈论我最喜欢的披萨并链接到 Joe's Pizza Store

On my site I talk about my favourite pizza and link to Joe's Pizza Store.

当我的一位访问者点击该链接时, Joe's Pizza Store 会在我们的分析中看到我的网址作为推介人。

When one of my visitor clicks the link, Joe's Pizza Store will see my URL as a referrer in their analytics.

我可以对链接标签(或其他方式)做些什么来掩盖原点吗?

Is there anything I can do to my link tags (or otherwise) to obscure the origin?

推荐答案

使用 rel =noreferrer

这样的事情:

<a href="signin.php" rel="noreferrer">sign in</a>




noreferrer关键字可以与a和area元素一起使用。这个
关键字不会创建超链接,但会注释元素创建的任何其他
超链接(隐含的超链接,如果没有其他
关键字创建一个)。

The noreferrer keyword may be used with a and area elements. This keyword does not create a hyperlink, but annotates any other hyperlinks created by the element (the implied hyperlink, if no other keywords create one).

它表示在链接后的
时不会泄露引用者信息。

It indicates that no referrer information is to be leaked when following the link.

如果用户代理遵循由
具有noreferrer关键字的a或area元素,用户代理不得在请求中包含Referer
(sic)HTTP标头(或其他协议的等效标头)。

If a user agent follows a link defined by an a or area element that has the noreferrer keyword, the user agent must not include a Referer (sic) HTTP header (or equivalent for other protocols) in the request.

如果
超链接创建新的浏览上下文,此关键字也会使opener属性保持为空。

This keyword also causes the opener attribute to remain null if the hyperlink creates a new browsing context.

更多信息此处

这篇关于如何隐藏链接到站点分析的链接来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆