Internet Explorer 插件和网站
网站是否能够确定特定的 IE 插件是否已安装?
如何让网页检测到 IE 插件?
Is the website able to determine if a particular IE add on has been installed or not?
How do you have the web page detect the IE add on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
一般来说,不会;但这取决于附加组件的作用。如果它以某种方式修改了网页(例如删除广告),那么应该可以使用 Javascript 来检测当前页面是否已被修改。
In general, no; however it depends on what the add-on does. If it modifies the web page in some way (e.g. removing ads) then it should be possible to use Javascript to detect if the current page has been modified.
如果插件可通过 Javascript/ActiveX 接口使用,则可以通过捕获调用某些(缺少的)插件函数的异常来检查其缺席情况。
这样,检查一些常见的插件就会产生很好的浏览器指纹识别方法。
请参阅:http://www.informatica64.com/Wbfingerprinting/
If the addon is available via Javascript/ActiveX interface, its absense may be checked by catching an exception on calling some (missing) addon's function.
This way, checking for few common addons leads to nice browser's fingerprinting method.
Refer to: http://www.informatica64.com/Wbfingerprinting/
毫无疑问,您可以通过 JavaScript 检测到大部分内容;它是特定于插件的。
No doubt you can detect most through JavaScript; it'd be addon-specific.
在 IE 中,只需从附加组件中公开 Active X 控件,然后在 Javascript
try {}
块内使用new ActiveXControl()
实例化它。如果成功,则您的扩展已安装。如果失败了,可能不会。您甚至可以公开.version()
方法来获取控件的版本。In IE just expose an Active X control from your add-on, and then instantiate it using
new ActiveXControl()
inside a Javascripttry {}
block. If it succeeds, your extension is installed. If it fails, probably not. You can even expose a.version()
method to get the version of the control.