Hide Referrer on click

后端 未结 8 726
暗喜
暗喜 2020-12-02 11:39

I want to hide the referrer when I click a link on my website. To understand better what I want to do: When somebody clicks a link on my website, I don\'t want the other web

8条回答
  •  爱一瞬间的悲伤
    2020-12-02 12:10

    Here is a fool proof way to do this. I use this script in an app that sometimes links to 3rd-party websites from pages who's URLs need to be kept private.

    
    
    
    
    Referral Mask
    
    
    

    Redirecting...

    Here is your link ' . "\n"; unset($_SESSION['to']); echo $output; exit(); } ?> Referral Mask

    Referral Mask

    This resource is used to change the HTTP Referral header of a link clicked from within our secure pages.

    This script uses both PHP and JavaScript to reliably remove the original referrer from the headers.

提交回复
热议问题