What is the most reliable way to hide / spoof the referrer in JavaScript?

前端 未结 10 1667
挽巷
挽巷 2020-11-28 03:13

Normally, the referrer is traceable through:

  • JavaScript\'s document.referrer
  • The request headers, e.g. PHP\'s $_SERVER[\'HTTP_REFER
10条回答
  •  忘掉有多难
    2020-11-28 03:37

    Can't you create a linking system that resides within iframes?

    If you wrap an iframe around every link, the iframe can act as an external de-refer. The user would click on the link inside the frame, opening a page whose referrer is set to the iFrame's location, instead of the actual page.

提交回复
热议问题