世界之窗论坛's Archiver

mecal 发表于 2007-4-9 20:41

谁能写一个过滤yahoo广告的规则?

广告网址[url=http://www.xivod.com/movie_play/2709_9.htm]http://www.xivod.com/movie_play/2709_9.htm[/url]
看个动画片,也是很郁闷。广告多的不行!

elkay 发表于 2007-4-9 20:51

用置顶的黑名单,可以过滤yahoo的广告。

这个网站也可以过滤,只是会留下空白,要比较彻底的把下面的加入黑名单
[code]
/\/js/(?:zuoyou|play_\d{3})\.js/
[/code]


[b][color=Red]注意:不保证不会误杀[/color][/b]

mecal 发表于 2007-4-9 20:54

谢谢啦   我试验一下

mecal 发表于 2007-4-9 21:02

没有用,还出错!!theworld自己关闭了!

duckZCX 发表于 2007-4-9 21:03

[quote]原帖由 [i]mecal[/i] 于 2007-4-9 21:02 发表 [url=http://bbs.ioage.com/redirect.php?goto=findpost&pid=269129&ptid=30866][img]http://bbs.ioage.com/images/common/back.gif[/img][/url]
没有用,还出错!!theworld自己关闭了! [/quote]
:funk: :funk:

俺试试~



估计又是E版测试有用,到了我们这里就:cold: :cold:

我这里没出错,不过过滤没效果~

[[i] 本帖最后由 duckZCX 于 2007-4-9 21:05 编辑 [/i]]

elkay 发表于 2007-4-9 21:05

回复 #4 mecal 的帖子

不会吧,我试了好多次了没有问题啊

mecal 发表于 2007-4-9 21:05

又出错了  我截图

mecal 发表于 2007-4-9 21:06

[filter]
url0=/(?:\.|\/|_|")(?:ads?(?:\d|code|gif|graph|list|log|puba|s?file|sence|site|show)?|(?:ali)?union(?:sky|sys)?|all(?:4ad|yes)|banner|cooperate|corporate|SogouUnion.*|cp(?:c|ro)|(?:guan|my)?gg(?:ao)?|keyrun|p(?:4|f)p|sp(?:onsor|code))s?(?:\d)*(?:\.|\/|_)/
url1=/[\W_]ads?(?!=&)(?:banner|click|flow|frame|ima?ge?|log|serv(?:er|e)?|stream|type|view|vert(?:ising|ise?ment)?|trix|xchange|wrapper)?s?[\W\d_]/
url2=/(?:\/|\-|_)(?:\d){2,3}x(?:\d){2,3}[^0-9]+(?:swf|gif|jpg)/
url3=/(?:\.|\/|_|")(?:ads?(?:\d|code|gif|graph|list|log|puba|s?file|sence|site|show)?|(?:ali)?union(?:sky|sys)?|all(?:4ad|yes)|banner|bdun|cp(?:c|ro)|(?:guan|my|newhua)?gg(?:ao)?|keyrun|p(?:4|f)p|sms|sp(?:onsor|code))s?(?:\d)*(?:\.|\/|_)/
url4=/[\W_]ads?(?!=&)(?:banner|click|flow|frame|ima?ge?|log|serv(?:er|e)?|stream|type|view|vert(?:ising|ise?ment)?|trix|xchange|wrapper)?s?[\W\d_]/
url5=/(?:\.|\/|_)(?:soft|hot)?ads?(?:s..|img|vert|rotator|view|bot|c_|client|council|gif|graph|images|info|log|pic)?(?:\.|\/|_)/
url6=/(?:\.|\/|_|")(?:a2d|cooperate|corporate|SogouUnion.*|themis|ulink(?:js|dir)|un|usmsweb|xc)s?(?:\d)*(?:\.|\/|_)/
url7=/\.moyu\.com\/(\d)*/
url8=/(?:\/|\-|_)(?:\d){2,3}x(?:\d){2,3}[^0-9]+(?:swf|gif|jpg)/
url9=/\/Images\/(?:a-d-s|chinabank|sms)s?(?:\.|\/|_)/
url10=/pic\.zol\.com\.cn\/(?:(?:\d)*|dealer)/
url11=/\.mydrivers\.com\/news\/.+\.js.*/
re0=<!--Ad blocked by TheWorld2-->
ex0=<!--ads begin-->(?:.|\n)*?<!--ads end-->
red0=by=theworld&q=cache
exd0=*.google.*#q=cache
red1=<!--Ad blocked by TheWorld2-->
exd1=*.btchina.net*#<!-- begin of ad block -->(?:.|\n)*?<!-- end of ad block -->
red2=<!--Ad blocked by TheWorld2-->
exd2=*.btchina.net*#<TD align=center width="20%">(?:.|\n)*?<\/TD>
red3=<!--Ad blocked by TheWorld2-->
exd3=*.sina.*#<div id=PublicRelation.*?>(?:.|\n)*?<\/div>
red4=</table><!--Ad blocked by TheWorld2-->
exd4=*.sina.*#<!--企业服务文字广告开始-->(?:.|\n)*?<!--正文结束-->
red5=<td width="100%" valign="top" class="lc_blue">
exd5=*.sina.*#<td width="(?:612|640)" valign="top" class="lc_blue">
red6=<link rel="stylesheet" type="text/css" id="css" href="[url=http://files.myopera.com/elkay.theworld/filter/sina.css]http://files.myopera.com/elkay.theworld/filter/sina.css[/url]">
exd6=*.sina.*#<style.*?type="text/css.*?>(?:.|\n)*?正文左边控制开始(?:.|\n)*?<\/style>
red7=<DIV class="top_bar"><SCRIPT src="[url=http://nicolliu.googlepages.com/sinatopbar.js]http://nicolliu.googlepages.com/sinatopbar.js"></SCRIPT[/url]>
exd7=*.sina.*#<DIV[^>]*class="?top_bar"?>[\s\S]*?http:\/\/unipro\.sina\.com\.cn\/[\s\S]*?<\/script>
red8=<!--Ad blocked by TheWorld2-->
exd8=*.baidu.*#<table[^>]*width="25%.*?>(?:.|\n)*?(?:http://www.baidu.com/cpro.php|http://ma.baidu.com/ma/rcv/click.php)(?:.|\n)*?<\/table>
red9=<!--Ad blocked by TheWorld2-->
exd9=*.baidu.*#<div[^>]*id="b?dfs.*?>(?:.|\n)*?<\/div>
red10=<table width="95%" border="0" bgcolor="#FFFFFF">
exd10=*post.baidu.com*#<table width="72%" border="0" bgcolor="#FFFFFF">
red11=<!--Ad blocked by TheWorld2-->
exd11=*.fhzw.net*#<iframe.*?id="article_ad_.*?>(?:.|\n)*?<\/iframe>
red12=<!--Ad blocked by TheWorld2-->
exd12=bbs.fhzw.net*#<fieldset.*?style='width:.*?>(?:.|\n)*?<\/fieldset>
red13=<!--Ad blocked by TheWorld2-->
exd13=*.sina.*#<div id=PublicRelation.*?>(?:.|\n)*?<\/div>
red14=</table><!--Ad blocked by TheWorld2-->
exd14=*.sina.*#<!--企业服务文字广告开始-->(?:.|\n)*?<!--正文结束-->
red15=<td width="100%" valign="top" class="lc_blue">
exd15=*.sina.*#<td width="(?:612|640)" valign="top" class="lc_blue">
red16=<link rel="stylesheet" type="text/css" id="css" href="[url=http://files.myopera.com/elkay.theworld/filter/sina.css]http://files.myopera.com/elkay.theworld/filter/sina.css[/url]">
exd16=*.sina.*#<style.*?type="text/css.*?>(?:.|\n)*?正文左边控制开始(?:.|\n)*?<\/style>
red17=<DIV class="top_bar"><SCRIPT src="[url=http://nicolliu.googlepages.com/sinatopbar.js]http://nicolliu.googlepages.com/sinatopbar.js"></SCRIPT[/url]>
exd17=*.sina.*#<DIV[^>]*class="?top_bar"?>[\s\S]*?http:\/\/unipro\.sina\.com\.cn\/[\s\S]*?<\/script>
red18=<!--Ad blocked by TheWorld2-->
exd18=*.163.com/0*#<!-- right -->(?:.|\n)*?<!-- mid -->
red19=<link href="[url=http://nicolliu.googlepages.com/163end_page.css]http://nicolliu.googlepages.com/163end_page.css[/url]" rel="stylesheet" type="text/css" />
exd19=*.163.com*#<link href=.*?/end_page.css.*?>
red20=<!--Ad blocked by TheWorld2-->
exd20=*.xdowns.com*#<(?:SPAN|div) (?:id|class)="?(?:ad\d|ggtop).*?>(?:.|\n)*?<\/(?:div|SPAN)>
red21=<!--Ad blocked by TheWorld2-->
exd21=*.google.*#<div[^>]*id=tpa.*?>(?:.|\n)*?<\/div>
red22=<!--Ad blocked by TheWorld2-->
exd22=*.google.*#<table[^>]*align=right.*?>(?:.|\n)*?<\/table>
red23=by=theworld&q=cache
exd23=*.google.*#q=cache
red24=width=95%
exd24=*.86zw.com*#width=730
red25=<!--Ad blocked by TheWorld2-->
exd25=*.86zw.com*#<td.*?width=220.*?>(?:.|\n)*?<\/td>
red26=<!--Ad blocked by TheWorld2-->
exd26=*.86zw.com*#<table.*?(bgcolor|width)=(#e7f4fe|250).*?>(?:.|\n)*?<\/table>
red27=<!--Ad blocked by TheWorld2-->
exd27=*.86zw.com*#<!--ads begin-->(?:.|\n)*?<!--ads end-->
red28=<!--Ad blocked by TheWorld2-->
exd28=*.86zw.com*#<fieldset.*?style='width:.*?>(?:.|\n)*?<\/fieldset>
red29=<!--Ad blocked by TheWorld2-->
exd29=*.mydrivers.com*#<script.*?duilian.js>(?:.|\n)*?<\/script>
red30=<!--Ad blocked by TheWorld2-->
exd30=*.mydrivers.com*#<table[^>]*class="table9.*?>(?:.|\n)*?<\/table>
red31=<!--Ad blocked by TheWorld2-->
exd31=*.mydrivers.com*#<table[^>]*bgcolor="#BCCEEF.*?>(?:.|\n)*?<td.*?height="(?:60|34).*?>(?:.|\n)*?<\/table>
url12=/\/js/(?:zuoyou|play_\d{3})\.js/

[[i] 本帖最后由 mecal 于 2007-4-9 21:09 编辑 [/i]]

elkay 发表于 2007-4-9 21:09

把你出错时的 theworld.ini 文件传上来我试试

elkay 发表于 2007-4-9 21:34

实在不行不用黑名单了,用页面过滤吧。

规则如下:
[code]#exd#*.xivod.com/movie_play/*#<table[^>]*?bgcolor="#D8D8D8">[\s\S]*?<\/tbody>###<!--Ad blocked by TheWorld2--><table>
#exd#*.xivod.com/movie_play/*#<table[^>]*?ffffff[^>]*?>[\s\S]*?<\/table>###<!--Ad blocked by TheWorld2-->
#exd#*.xivod.com/movie_play/*#<script[^>]*?/js/(?:play_\d{3}|zuoyou)\.js[^>]*>[\s\S]*?<\/script>###<!--Ad blocked by TheWorld2-->[/code]

mecal 发表于 2007-4-9 21:37

哎  郁闷  还上不行 报错!
ini文件在下面!

elkay 发表于 2007-4-9 21:41

我还是没有问题,会不会是你系统的问题?

附图是用你的ini访问的截图

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.