停止从发送引荐者到目的地的链接 [英] Stop link from sending referrer to destination

查看:171
本文介绍了停止从发送引荐者到目的地的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面,我不希望出站链接发送推荐人,因此目标网站不知道他们来自哪里。

I have a page where I don't want the outbound links to send a referrer so the destination site doesn't know where they came from.

我'猜测这是不可能的,但我只是想确保没有任何隐藏的javascript魔法可以做到这一点,这将适用于一些(如果不是大多数)浏览器。

I'm guessing this isn't possible but I just want to make sure there weren't any hidden javascript magic that could do it and that would work with some (if not most) browsers.

也许一些聪明的HTTP状态代码重定向功夫?

Maybe some clever HTTP status code redirecting kung-fu?

这样的东西是完美的

<a href="example.com" send_referrer="false">link</a>


推荐答案

我一直在寻找同样的东西,它好像是这将是HTML5的一项功能

I was looking for just the same thing, and it seems like this will be a feature of HTML5.

您要找的标签是 rel =noreferrer

已经在Webkit中实现 Chrome等)以及Firefox ,但是您的里程可能会有所不同。

It is already implemented in Webkit (Chrome, etc.), as well as Firefox, but your mileage may vary.

这篇关于停止从发送引荐者到目的地的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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