隐藏Referer(PHP、HTML、JS 无关紧要)
我正在使用类似
mysite.com/out.php?url=outurl.com
我只是使用一个简单的重定向,但我只是想知道如何隐藏引荐来源网址。
谢谢!
编辑:我最终进行了两次元刷新
I'm using something like this
mysite.com/out.php?url=outurl.com
I'm just using a simple redirect, but I'm just wondering how I can hide the referrer.
Thanks!
edit: I ended up doing a double meta refresh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
引荐来源网址是由用户的浏览器附加的,而不是由您的服务器附加的,由他们决定是否包含它
The referrer is attached by the user's browser, not by your server, it's up to them to include it or not
如果隐藏是指将其从地址栏中删除,则可以使用 POST 请求而不是 GET 或自定义 HTTP 标头。作为第三个选项,您可以使用 GET 请求但加密数据。另外,我想您正在谈论一些自定义引荐来源网址,而不是可能发送的标准 HTTP 引荐来源网址由用户代理。
If by hide you mean to remove it from the address bar than you could use a POST request instead of GET or a custom HTTP header. As a third option you could use a GET request but encrypt the data. Also I suppose you are talking about some custom referrer and not the standard HTTP referrer which might be sent by the user agent.
如果您真的想从下游网站隐藏引荐来源网址,您可以选择...
例如,您可以尝试该服务
http: //referer.us/
提供重定向(即所有推荐似乎都来自而不是您)。
根据您的目标,您可以轻松地自己实现类似的服务,无论是在您自己的域(例如“/generic-referer.html”,如果您不希望人们看到访问者来自的深层链接页面)或您控制的新域。
If you're really serious about hiding the referrer from downsteam sites, you have options...
For example you could try the service
http://referer.us/
which offers rediction (i.e. all referrals appear to come from instead of you).
Depending on your goals, you could easily implement a similar service yourself, either at your own domain (e.g. "/generic-referer.html" if you don't want people seeing the deep-linked page from which a visitor is coming) or a new domain that you control.
是的,您可以隐藏您的引荐来源网址:
无论如何,较新的浏览器现在都可以通过元标记正确支持这一点。您可以添加:
对于要隐藏引荐来源网址的页面。
我认为这会有所帮助:-)
Yes, you can hide your referrer :
Newer browsers now support this properly anyway, with a meta tag. You can add:
For that page which you want to hide referrer.
I think it will help :-)