在什么情况下 HTTP_REFERER 会为空 [英] In what cases will HTTP_REFERER be empty

查看:54
本文介绍了在什么情况下 HTTP_REFERER 会为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有可能得到一个空的 HTTP_REFERER.在什么情况下会发生这种情况?如果我得到一个空的,是否总是意味着用户更改了它?得到一个空的和得到一个空的一样吗?在什么情况下我也会得到它?

I know it's possible to get an empty HTTP_REFERER. Under what circumstances does this happen? If I get an empty one, does it always mean that the user changed it? Is getting an empty one the same as getting a null one? and under what circumstances do I get that too?

推荐答案

最终用户会/可能为空

  • 在浏览器地址栏中输入网站 URL.
  • 通过浏览器维护的书签访问了该网站.
  • 在窗口/选项卡中作为第一页访问了该网站.
  • 点击了外部应用程序中的链接.
  • 从 https 网址切换到 http 网址.
  • 从 https 网址切换到不同的 https 网址.
  • 已安装安全软件(防病毒/防火墙/等),可从所有请求中去除引荐来源网址.
  • 位于一个代理后面,该代理从所有请求中去除引荐来源网址.
  • 以编程方式访问网站(例如,curl)而不设置引荐来源标头(搜索机器人!).
  • entered the site URL in browser address bar itself.
  • visited the site by a browser-maintained bookmark.
  • visited the site as first page in the window/tab.
  • clicked a link in an external application.
  • switched from a https URL to a http URL.
  • switched from a https URL to a different https URL.
  • has security software installed (antivirus/firewall/etc) which strips the referrer from all requests.
  • is behind a proxy which strips the referrer from all requests.
  • visited the site programmatically (like, curl) without setting the referrer header (searchbots!).

这篇关于在什么情况下 HTTP_REFERER 会为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆