Determining Referer in PHP

后端 未结 5 1439
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 04:01

What is the most reliable and secure way to determine what page either sent, or called (via AJAX), the current page. I don\'t want to use the $_SERVER[\'HTTP_REFERER

5条回答
  •  不要未来只要你来
    2020-11-22 04:46

    There is no reliable way to check this. It's really under client's hand to tell you where it came from. You could imagine to use cookie or sessions informations put only on some pages of your website, but doing so your would break user experience with bookmarks.

提交回复
热议问题