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

前端 未结 10 1642
挽巷
挽巷 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:43

    A very comprehensive (but short) analysis can be found at:

    http://lincolnloop.com/blog/2012/jun/27/referrer-blocking-hard/

    this article analyses both methods explained in other answers (js method, iframe redirecting) and finally suggest a mediate redirector page approach, like the one seen in google search links.

提交回复
热议问题