PHP: Changing referer with header()

后端 未结 3 543
野的像风
野的像风 2021-01-19 08:33

My CMS links to other sites for convenience and I\'d like to hide the referer so that other sites don\'t see the directory and the query string of my CMS. I now have the CMS

3条回答
  •  广开言路
    2021-01-19 08:38

    The Referer header is something the browser sends to the Server. You are changing the respose from the server to the browser, so that will not work this way (unlike the Cookie header). As far as I know you have no server-side control of the browser's behavior on sending the Referer.

提交回复
热议问题