PHP: Changing referer with header()

后端 未结 3 572
野的像风
野的像风 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 09:01

    You cannot really change the referer from server-side as it is provided by the browser to the server.

    But you can use a service like href.li, just use

     https://href.li/?http://
    

    Note: http:// after ? is important or it will not redirect.

提交回复
热议问题