PHP HTTP Referrer

后端 未结 4 1977
梦谈多话
梦谈多话 2021-01-05 01:58

I have a page which accepts POSTs from a remote site. I would like to detect the domain that these POSTs are coming from. I realize that it can be spoofed but it is better t

4条回答
  •  猫巷女王i
    2021-01-05 02:25

    You are right that the referrer is easy to spoof, however there is a better solution. Read the ipn documentation in which they mention validation mechanisms. Never trust the user.

提交回复
热议问题