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

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

    what if we submit a FORM using JavaScript, this way there will be no referrer.

    document.form_name.submit()
    

    basically we are submit a form with desired ACTION method.

提交回复
热议问题