gpt4 book ai didi

php - 请求的来源

转载 作者:可可西里 更新时间:2023-11-01 13:33:47 25 4
gpt4 key购买 nike

如何获取提交请求的网址。我试过 $_SERVER['REQUEST_URI'];但这给了我目标网址而不是源网址。是否可以获取来源?

最佳答案

您正在寻找$_SERVER['HTTP_REFERER'];

注意:

The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.

关于php - 请求的来源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4118000/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com