How do you spoof HTTP_REFERER?

后端 未结 3 1379
星月不相逢
星月不相逢 2020-12-21 02:40

I need to try and spoof the HTTP_REFERER passed my another page so that in the destination page, I can determine of the request is coming in from the \"right\" page and perf

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-21 03:02

    Generally speaking, you cannot cause other browsers to return a false HTTP_REFERER without an exploit, plug-in, or other extension. If you want to modify the value sent from your web browser and you are using FireFox, look at the Modify Headers extension.

    In any case, you should never rely on HTTP_REFERER being accurate. There is no guarantee that the HTTP_REFERER you receive is not faked or simply not sent.

提交回复
热议问题