如何在mysite.com的网站访问者点击链接(如http://google.com)时将引用页面发送到目标网站?
这可能用PHP吗?
基本上我希望链接的网站不知道访问者来自哪里
解决方法:
我不认为这是可能的,因为HTTP引用者信息是由浏览器发送的.您可以安装浏览器插件以防止发送引用,但不能直接使用PHP.
更新:我刚发现了这个
If a website is accessed from a HTTP Secure (HTTPS) connection and a link points to anywhere except another secure location, then the referrer field is not sent.
The upcoming standard HTML5 will support the attribute/value rel = “noreferrer” in order to instruct the user agent not to send a referrer.
资料来源:http://en.wikipedia.org/wiki/HTTP_referrer#Referrer_hiding