海运的博客

空referer

发布时间:December 13, 2014 // 分类: // No Comments

一些隐藏referer的方法,非完全兼容。

<meta name="referrer" content="never">
<a href="https://www.haiyun.me" rel=noreferrer</a>
<meta http-equiv="refresh" content="5; url=https://www.haiyun.me/" />
https to http

JS:

<script>
function open_without_referrer(link){
document.body.appendChild(document.createElement('iframe')).src='javascript:"<script>top.location.replace(\''+link+'\')<\/script>"';
}
open_without_referrer("https://www.haiyun.me/");
</script>

完整解决方案:
https://github.com/knu/noreferrer
参考:
http://www.cnblogs.com/rubylouvre/p/3541411.html
http://zhongfox.github.io/blog/javascript/2013/08/16/remove-referer-using-js/
https://blog.gslin.org/archives/2014/12/05/5404/%E8%A6%81%E7%80%8F%E8%A6%BD%E5%99%A8%E4%B8%8D%E8%A6%81%E9%80%81%E5%87%BA-referrer-%E7%9A%84-referrer-policy/

标签:none

评论已关闭

分类
最新文章
最近回复
  • 海运: 网络,找到相应的url编辑重发请求,firefox有此功能,其它未知。
  • knetxp: 用浏览器F12网络拦截或监听后编辑重发请求,修改url中的set为set_super,将POS...
  • Albert: 啊啊啊啊啊啊啊啊啊 我太激动了,终于好了英文区搜索了半天,翻遍了 pve 论坛没找到好方法,博...
  • jiangker: good, very helpful to me
  • fengfeng: N1 armbian 能有编译下内核吗。。我要开启can 不懂怎么操作
  • 1: 方法一ngtcp2要改下:./configure PKG_CONFIG_PATH=/usr/l...
  • 海运: 关闭服务器
  • 海风: override.battery.charge.low以及override.battery.r...
  • koldjf: 不能过滤
  • 杰迪武士: 此文甚好甚强巨,依照此文在树莓派2 + Rasbian上部署成功 感谢博主美文共赏