返回列表 发帖
  1. /\/article\/(indextop|pagetop|indexhead|indexbottom)(s)?\.(js)/
复制代码

上面的规则应该能过滤下列内容吧?
  1. /article/indexbottom2.js
  2. /article/indexbottom.js
  3. /article/indexhead.js
  4. /article/pagetop1.js
  5. /article/indextop.js
复制代码

但显然没有过滤下面的网址
http://read.xhxsw.com/files/article/html/61/61528/index.html

TOP

回复 #122 Amelia 的帖子

后面的 "?" 就是1.2.....了

[ 本帖最后由 pw4321 于 2007-1-20 20:20 编辑 ]

TOP

回复 #125 elkay 的帖子

http://read.xhxsw.com/files/article/html/61/61528/index.html
这个地址最要命的广告没有过滤

我这儿等半分钟左右会出现一个大大的广告,能把半屏正文给遮住

[ 本帖最后由 pw4321 于 2007-1-20 21:20 编辑 ]

TOP

回复 #127 elkay 的帖子

查看该页原码,发现内有以下本该被过滤的内容

  1. /article/indexbottom2.js
  2. /article/indexbottom.js
  3. /article/indexhead.js
  4. /article/pagetop1.js
  5. /article/indextop.js
复制代码


是不是这句表达式有问题呢?

  1. /\/article\/(indextop|pagetop|indexhead|indexbottom)(s)?\.(js)/
复制代码

[ 本帖最后由 pw4321 于 2007-1-20 21:24 编辑 ]

TOP

回复 #129 elkay 的帖子

好像还是不起作用啊

我先不用黑名单过滤,保存源码
再使用过滤,保存源码,然后比较两个源码,结果没有任何不同!

TOP

回复 #141 elkay 的帖子

奇怪了,这是为什么?

我用的tw是 2.0.1.0 , IE 版本 6.00.2900.2180 , XPSP2 版本 5.1.2600

黑名单过滤条件是

  1. /(\.|\/|_)(ad|adimage|adimg|adgif|adgraph|adinfo|adlog|adpic|adsfile|aliunion|all4ad|allyes|banner|cpc|cpro|gg|ggao|guanggao|mygg|newhuagg|p4p|pfp|sms|sponsor|themis|usmsweb|xc|union|unionsky|unionsys)(s)?(\d)*(\.|\/|_)/
  2. /[\W_]ad(?!=&)(banner|click|flow|frame|ima?ge?|log|serv(er|e)?|stream|type|view|vert(ising|isement)?|trix|xchange|wrapper)?s?[\W\d_]/
  3. /(\.|\/|_)(soft|hot)?ad(s..|img|vert|rotator|view|bot|c_|client|council|gif|graph|images|info|log|pic)?(\.|\/|_)/
  4. /(\d){2,3}x(\d){2,3}\.(swf|gif|jpg|jpeg)/
  5. /(union|un)(s)?\.(265)\.(com)/
  6. /\/article\/(indextop|pagetop|indexhead|indexbottom)?\.(j)?/
  7. /\.(zichen)\.(com)(\/)(head1|head2|gad)(s)?(\.|\/|_)/
  8. /\/Images\/(a-d-s|chinabank|sms)(s)?(\.|\/|_)/
  9. /\.(zol)\.(com)\.(cn)(\/)((\d)*|dealer)(\/)/
  10. /(\.|\/|_)(adcode|adslist|adssite|spcode)(\.|\/)/
复制代码


TheWorld.ini 内的 [filter] 为
  1. url0=/(\.|\/|_)(ad|adimage|adimg|adgif|adgraph|adinfo|adlog|adpic|adsfile|aliunion|all4ad|allyes|banner|cpc|cpro|gg|ggao|guanggao|mygg|newhuagg|p4p|pfp|sms|sponsor|themis|usmsweb|xc|union|unionsky|unionsys)(s)?(\d)*(\.|\/|_)/
  2. url1=/[\W_]ad(?!=&)(banner|click|flow|frame|ima?ge?|log|serv(er|e)?|stream|type|view|vert(ising|isement)?|trix|xchange|wrapper)?s?[\W\d_]/
  3. url2=/(\.|\/|_)(soft|hot)?ad(s..|img|vert|rotator|view|bot|c_|client|council|gif|graph|images|info|log|pic)?(\.|\/|_)/
  4. url3=/(\d){2,3}x(\d){2,3}\.(swf|gif|jpg|jpeg)/
  5. url4=/(union|un)(s)?\.(265)\.(com)/
  6. url5=/\/article\/(indextop|pagetop|indexhead|indexbottom)?\.(j)?/
  7. url6=/\.(zichen)\.(com)(\/)(head1|head2|gad)(s)?(\.|\/|_)/
  8. url7=/\/Images\/(a-d-s|chinabank|sms)(s)?(\.|\/|_)/
  9. url8=/\.(zol)\.(com)\.(cn)(\/)((\d)*|dealer)(\/)/
  10. url9=/(\.|\/|_)(adcode|adslist|adssite|spcode)(\.|\/)/
复制代码

[ 本帖最后由 pw4321 于 2007-1-21 20:14 编辑 ]
附件: 您需要登录才可以下载或查看附件。没有帐号?加入 我们

TOP

修改过滤条件后重启TW,结果还是有.js文件,不知是否和系统有关,我的系统是精简系统

清空缓存后再试,源文件中还是有5个.js文件,还是有广告

[ 本帖最后由 pw4321 于 2007-1-21 20:57 编辑 ]

TOP

使用
  1. /\/article\/(indextop|pagetop|indexhead|indexbottom)?\.(j)?/
复制代码

后有5个.js文件:indexbottom2.js、indexbottom.js、indexhead.js、pagetop1.js、indextop.js

使用了
  1. /\/article\/(indextop|pagetop|indexhead|indexbottom)?\.(js)?/
复制代码

后只剩下两个:pagetop1.js、indexbottom2.js

使用了
  1. /\/article\/(indextop|pagetop|indexhead|indexbottom)?(.)?\.(js)?(.)?/
复制代码

后没有.js文件了

[ 本帖最后由 pw4321 于 2007-1-22 09:02 编辑 ]

TOP

返回列表