实现根据黑名单或白名单列表对URL地址进行过滤功能。
注册:
1、regsvr32 /s iebho.dll
卸载:
1、regsvr32 /s /u iebho.dll
过滤规则文件:
1、过滤规则文件位于system32目录下,文件名称为urlfilt.sys
2、文件格式为以\x0a分隔的行,第一行标记缺省是禁止网页访问还是允许,
即是白名单还是黑名单,
网址不能加入http://等头,并且采用模糊匹配方法,例如sina将匹配
www.sina.com.cn、sina.cn等
黑名单格式例:
0\x0awww.sina.com.cn\x0abbs.xici.net\x0a
对于列表中的网址执行阻断,列表外的允许访问
白名单格式例:
1\x0awww.sina.com.cn\x0abbs.xici.net\x0a
对于列表中的网址允许访问,列表外的执行阻断
3、BHO组件对urlfilt.sys文件的访问采用fmShareDenyNone方式,不加任何锁
achieved under white list or blacklist of URL filtering function. Registration : 1, typing/s iebho.dll unloading : 1. typing/s/u iebho.dll filtering rules : 1. Filter rules are located in system32 directory and the file name for urlfilt.sys 2. file format for a \ x0a separated OK, OK marking the first default is prohibited or allowed to visit the website. that is, white list or blacklist web site, http://, etc. can be included in the first, and using fuzzy matching, For example, Sina will match www.sina.com.cn, sina.cn blacklist format such cases : 0 \ x0awww.sina.com.cn \ x0abbs.xici.net \ x0a For the list of blocked implementation of the website, the list outside the white list to allow visits format cases : 1 \ x0awww.sina.com.cn \ x0abbs.xici.net \ x0a list for permission to (2007-04-08, Delphi, 8KB, 下载224次)
*** Installation Started 06/16/2005 14:52 ***
Title: 天网防火墙个人版V2.70 安装
Source: G:\Downloads\天网防火墙个人版 v2.7.0.1 Final 零售版\天网防火墙个人版 v2.7.0.1 Final 零售版\Setup\SkynetPFW_Retail_Release_v2.70_Build0909@ttdown.com.EXE | 09-09-2004 | 04:04:54 | 5508707
User Rights: Admin
*** Installation Started 10/29/2004 14 : 52*** Title : Skynet personal firewall version V2.70 installed Source : G : \ Downloads \ Skynet personal firewall version v2.7.0.1 Final retail version \ Skynet fire wall personal version of the retail version v2.7.0.1 Final \ Setup \ SkynetPFW_Ret ail_Release_v2.70_Build0909 @ ttdown.com.E XE | 09-09-2004 | 04:04:54 | 5508707 User Rights : Admin (2006-02-07, Delphi, 1244KB, 下载42次)