1

在我的网站上,我希望能够将推荐人设为空白,以免透露我的流量来自何处。

这是一个例子:

Site 1 - http://www.examplesite1.com (traffic source)
Site 2 - https://www.examplesite2.com (site to redirect through, notice it is redirecting over a SSL connection)
Site 3 - http://www.partnerssite.com (where i want to push traffic from examplesite1.com, the "referer" header should be dropped, because it is redirecting from a HTTP Secure to a Non-secure HTTP)

我在站点 1 中有以下代码:

<?php 
header("Location: https://redirect/to/site2");
?>

在站点 2 内部:

<?php 
header("Location: http://www.partnerssite.com");
?>

但是每次我运行脚本时,来自“站点 1”的引荐来源网址都会不断泄露。

你能帮我解决这个问题吗?非常欢迎所有帮助和提示。

谢谢

4

0 回答 0