编程语言
首页 > 编程语言> > php – 如何从Yahoo或Gmail获取HTTP_REFERER

php – 如何从Yahoo或Gmail获取HTTP_REFERER

作者:互联网

我有一个电子邮件脚本,可以通过链接向Yahoo或Gmail发送邮件,这个链接会在点击时返回到我的网站.

我需要从Yahoo或Gmail获取HTTP_REFERER.在我的网站我有

echo $_SERVER[“HTTP_REFERER”];

期待能够回归的东西.但它空洞.

解决方法:

这似乎是设计上的.可以使用Javascript shenanigans删除标头.从Google’s docs on GMail privacy开始:

Minimized “referrer” header information. When you click on links in messages, the web browser that loads contains a referrer header. When you click on links in Gmail, Google takes steps to eliminate this referrer header, preventing others from knowing that you clicked on a link from an email.

标签:php,http-referer
来源: https://codeday.me/bug/20191003/1846072.html