HTTP Referer:修订间差异

来自WHY42
Riguz留言 | 贡献
无编辑摘要
Riguz留言 | 贡献
无编辑摘要
第2行: 第2行:


<syntaxhighlight lang="HTTP">
<syntaxhighlight lang="HTTP">
Referer: <url>
Referer: https://developer.mozilla.org/en-US/docs/Web/JavaScript
Referer: https://example.com/page?q=123
Referer: https://example.com/
</syntaxhighlight>
</syntaxhighlight>
主要是以下三种场景,会发送Referer字段<ref>https://www.ruanyifeng.com/blog/2019/06/http-referer.html</ref>。
* 用户点击网页上的链接。
* 用户发送表单。
* 网页加载静态资源,比如加载图片、脚本、样式。
== Referer Policy ==
== Referer and HTTPS ==





2023年12月6日 (三) 09:37的版本

The Referer HTTP request header contains the absolute or partial address from which a resource has been requested. The Referer header allows a server to identify referring pages that people are visiting from or where requested resources are being used. This data can be used for analytics, logging, optimized caching, and more[1].

Referer: https://developer.mozilla.org/en-US/docs/Web/JavaScript
Referer: https://example.com/page?q=123
Referer: https://example.com/

主要是以下三种场景,会发送Referer字段[2]

  • 用户点击网页上的链接。
  • 用户发送表单。
  • 网页加载静态资源,比如加载图片、脚本、样式。

Referer Policy

Referer and HTTPS