How do you spoof HTTP_REFERER?

后端 未结 3 1378
星月不相逢
星月不相逢 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 02:45

    If you want to test at the destination page whether a request is coming from the "right" page, you don't need to spoof the referrer. All you need to do is issue the request from a different page. Set up a page at a different URL from what you consider the "right" one, and issue requests from there, either by clicking a link to the destination page or by putting an image sourced from the destination.

提交回复
热议问题