简体   繁体   English

HTTP引用标头-移动浏览器

[英]HTTP referer headers - mobile browsers

I seem to have a unique problem. 我似乎有一个独特的问题。 In my apache logs (for a mobile site) I see that for some requests the referer header is null ("-"). 在我的apache日志中(对于移动网站),我看到对于某些请求,引荐标头为空(“-”)。 All requests on the logs are "href" links and occur from a mobile browser by clicking/tapping . 日志上的所有请求均为“ href”链接,并且通过单击/点击从移动浏览器中进行。 So there is almost no chance of the url being accessed from the address bar directly (in which case I can understand the absence of a referer header) . 因此,几乎没有机会直接从地址栏中访问url(在这种情况下,我可以理解没有引荐标头的情况)。 What are the other possibilities that a referer header can be null ? 引用标头可以为null的其他可能性是什么?

Are there mobile devices which have a browser feature to turn of referer headers (like desktop browsers) ? 是否有具有浏览器功能的移动设备可以转换引荐标头(例如台式机浏览器)?

I also understand that such a thing can be achieved on a desktop browser by spoofing the the UserAgent to a mobile device. 我也了解,可以通过将UserAgent欺骗到移动设备上来在桌面浏览器上实现此目的。 But I'm slightly hesitant as there is no motive for the user to do so. 但是我有点犹豫,因为用户没有这样做的动机。

Also, will the referer header persist when a link is opened in a separate window/tab ? 另外,在单独的窗口/选项卡中打开链接时,引荐来源标头会保留吗? (Again, I'm not sure if this is possible on a mobile device) (同样,我不确定是否可以在移动设备上进行此操作)

Any thoughts will be appreciated . 任何想法将不胜感激。

大多数较新的移动浏览器都支持在新窗口/选项卡中打开...在这种情况下,引荐来源网址会丢失...如果发生重定向,引荐来源网址也可以为空白...如果重定向页面没有引荐来源网址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM