如何找出 HTTP 请求的来源?

发布于 2024-12-12 18:45:53 字数 155 浏览 1 评论 0原文

我可以通过哪些方式找到生成 HTTP 请求的来源?我只知道一个,即 HTTP Referrer 字段。还有其他办法吗?

编辑:在这里我只想知道请求是直接从机器生成还是从其他网站生成。如果是其他网站,那么是哪一个?我对 IP 级别的细节不感兴趣。

What are the various ways through which I can find out the source from which a HTTP request is generated? I know only one, i.e. HTTP referrer field. Is there any other way also?

EDIT: Here I am only interested in knowing that whether the request is generated from a machine directly or from some other website. And in case of some other website, then which one? I am not interested in IP level details.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

十雾 2024-12-19 18:45:53

正确答案是“不。 – SLAks 10 月 31 日 17:34”

Correct answer is "Nope​​​​​​​​​​​​. – SLaks♦ Oct 31 at 17:34"

错爱 2024-12-19 18:45:53

您可以对远程 IP 进行地理查找...

You coud do a geo lookup of the remote ip...

雪花飘飘的天空 2024-12-19 18:45:53

从发出请求的位置获取源的最简单方法是解析请求标头。以下是有关如何检索所请求的客户详细信息的示例。

var agent = Request.Headers.UserAgent;

The simplest method to get the source from where the request has been made is parsing of request headers. Below is the example on how to retrieve the requested client details.

var agent = Request.Headers.UserAgent;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文