检测,如果网站正在提供通代理服务器像Opera Mini的? [英] Detect if website is being served thru a proxy server like Opera Mini?
问题描述
许多功能手机使用 Opera Mini的到的serve 网页。同样的Kindle Fire使用亚马逊丝绸。有没有办法在JavaScript来检测被不UA检测中使用的代理?
Many feature phones use Opera Mini to serve webpages. Similarly Kindle Fire uses Amazon Silk. Is there a way in JavaScript to detect that a proxy is being used without UA detection?
推荐答案
我的假设是,这种基于云的浏览器不支持事件的一个子集。为了检测这样的浏览器,我使用的是JavaScript测试,检查支持事件滚动
。
My hypothesis is that such cloud based browsers cannot support a subset of events. For detecting such browsers I am using a javascript test that checks support for an event scroll
.
var cloudBrowser = ('onscroll' in window?false:true);
我能找到这对我的机器人上的Opera Mini的成功合作(三星Galaxy Note 2),同时诺基亚C2-03浏览器。 (我无法检查此亚马逊丝绸,因为我没有足够的设备)。
I was able to find this working successfully on opera mini on my android (Samsung Galaxy Note 2) and also on Nokia C2-03 browser. (I was unable to check this for Amazon Silk as I do not have the device).
不要让我知道,如果你是知道的任何其他云浏览器Android版,我可以下载和扩大测试。
Do let me know if you are aware of any other cloud browsers for android that I can download and extend the testing.
这篇关于检测,如果网站正在提供通代理服务器像Opera Mini的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!