internet-explorer - IE、火狐、Safari : Want to write Internet filter: Are there well known "hooks" that I can tie into?

标签 internet-explorer firefox safari filtering filter

对于每个现代浏览器,我都可以绑定(bind)众所周知的钩子(Hook),这样我就可以在浏览时编写 Internet 过滤器,例如可以为这些类型的事件编写实现的接口(interface):

OnBeginSurf(URL) {
    // check URL to see if goes to porn site
}    
OnContentFinishedDownloading(HTML) {
    // check HTML for "bad" content
}

我想我会为 IE 写一些 COM 代码?我假设 Firefox 和 Safari 有一些众所周知的接口(interface)来处理这些事情?

谁能指出一些描述这一点的网页?我用谷歌搜索找不到太多...

最佳答案

不要尝试 Hook 浏览器来编写内容过滤器。

编写代理服务器。每个浏览器都必须通过您的代理服务器请求 Web 内容,该代理服务器将能够在内容返回浏览器之前检查和过滤内容。您只需编写一次代码,就可以让它在任何请求 Web 内容的东西上工作。

关于internet-explorer - IE、火狐、Safari : Want to write Internet filter: Are there well known "hooks" that I can tie into?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2545808/

相关文章:

javascript - 对于每个...in 循环未运行 : syntax error missing (

google-chrome - 在 chrome 和 firefox 中启用 ActiveX 控件

javascript - Safari - Javascript - 隐藏/显示 Div 导致滚动条重置

javascript - 为什么 IE 在解码 Base64 时给出中文/普通话字符?

javascript - Internet Explorer 7 CSS Mega 菜单定位

Javascript - 在 Firefox 中使用焦点不会调用最大化和选项卡切换事件

javascript - 没有文件阅读器的 Angularjs 图像预览

css - 为什么 Internet Explorer 需要 "hasLayout"标志?

css - Internet Explorer 6 (urgh) 和 CSS - 将多个类应用于样式

html - 删除空白 (CSS) - Chrome 和 Safari OK - Firefox NOT