resolve duplicate white list

This commit is contained in:
gently 2020-01-17 14:31:06 +08:00
parent af969174f1
commit c89bea7202
4 changed files with 18 additions and 73 deletions

View File

@ -1,4 +1,4 @@
#TIME=20200117051510 #TIME=20200117062832
#URL=https://github.com/privacy-protection-tools/anti-AD #URL=https://github.com/privacy-protection-tools/anti-AD
address=/0024aaaa.com/ address=/0024aaaa.com/
address=/0026645142c89aeb1.com/ address=/0026645142c89aeb1.com/

View File

@ -1,4 +1,4 @@
!TIME=20200117051510 !TIME=20200117062832
!URL=https://github.com/privacy-protection-tools/anti-AD !URL=https://github.com/privacy-protection-tools/anti-AD
||0024aaaa.com^ ||0024aaaa.com^
||0026645142c89aeb1.com^ ||0026645142c89aeb1.com^
@ -297,7 +297,7 @@
||r.mail.ru^ ||r.mail.ru^
||rs.mail.ru^ ||rs.mail.ru^
||top-fwz1.mail.ru^ ||top-fwz1.mail.ru^
/^ad([0-9]|m)?\.[0-9a-z\.\-]+\.([a-z]+)?$/ /^ad([0-9]|m|s)?\.[0-9a-z\.\-]+\.([a-z]+)?$/
||1lib.cn^ ||1lib.cn^
||1lo0.net^ ||1lo0.net^
||1loop.com^ ||1loop.com^
@ -1664,7 +1664,6 @@
||adacts.com^ ||adacts.com^
||adadmin.house365.com^ ||adadmin.house365.com^
||stat.house365.com^ ||stat.house365.com^
||ads.house365.com^
||adadvisor.net^ ||adadvisor.net^
||adagora.com^ ||adagora.com^
||adakgpoi.com^ ||adakgpoi.com^
@ -2021,7 +2020,6 @@
||admddc.com^ ||admddc.com^
||admd.housefun.com.tw^ ||admd.housefun.com.tw^
||admd.yam.com^ ||admd.yam.com^
||ads.yam.com^
||admedia.com^ ||admedia.com^
||admedit.net^ ||admedit.net^
||admedo.com^ ||admedo.com^
@ -2240,7 +2238,6 @@
||ad-score.com^ ||ad-score.com^
||adscpm.net^ ||adscpm.net^
||adsc.wasu.tv^ ||adsc.wasu.tv^
||ads.wasu.tv^
||adsystem.wasu.tv^ ||adsystem.wasu.tv^
||adwasu.wasu.tv^ ||adwasu.wasu.tv^
||countatm.cp12.wasu.tv^ ||countatm.cp12.wasu.tv^
@ -2312,7 +2309,6 @@
||adslala.com^ ||adslala.com^
||adslidango.com^ ||adslidango.com^
||adslingers.com^ ||adslingers.com^
||ads.linkedin.com^
||platform.linkedin.com^ ||platform.linkedin.com^
||adslivecorp.com^ ||adslivecorp.com^
||adslot.com^ ||adslot.com^
@ -2356,8 +2352,6 @@
||adss.dotdo.net^ ||adss.dotdo.net^
||adssend.net^ ||adssend.net^
||servebom.com^ ||servebom.com^
||ads.sexier.com^
||ads.sohu.com^
||assp.sohu.com^ ||assp.sohu.com^
||count.vrs.sohu.com^ ||count.vrs.sohu.com^
||fpb.sohu.com^ ||fpb.sohu.com^
@ -2393,7 +2387,6 @@
||vg.aty.sohu.com^ ||vg.aty.sohu.com^
||x1.go.sohu.com^ ||x1.go.sohu.com^
||adss.yahoo.com^ ||adss.yahoo.com^
||ads.yahoo.com^
||bats.video.yahoo.com^ ||bats.video.yahoo.com^
||beap-bc.yahoo.com^ ||beap-bc.yahoo.com^
||gemini.yahoo.com^ ||gemini.yahoo.com^
@ -2432,7 +2425,6 @@
||adstuna.com^ ||adstuna.com^
||ads-twitter.com^ ||ads-twitter.com^
||ad.style^ ||ad.style^
||ads.uc.cn^
||bench.uc.cn^ ||bench.uc.cn^
||track.uc.cn^ ||track.uc.cn^
||alissl.ucdl.pp.uc.cn^ ||alissl.ucdl.pp.uc.cn^
@ -2447,7 +2439,6 @@
||ads-union.jd.com^ ||ads-union.jd.com^
||jcm.jd.com^ ||jcm.jd.com^
||wl.jd.com^ ||wl.jd.com^
||ads.union.jd.com^
||x.jd.com^ ||x.jd.com^
||cm.jd.com^ ||cm.jd.com^
||du.jd.com^ ||du.jd.com^
@ -2464,7 +2455,6 @@
||ad-survey.com^ ||ad-survey.com^
||adsvcs.com^ ||adsvcs.com^
||adsvert.com^ ||adsvert.com^
||ads.videosz.com^
||banners.videosz.com^ ||banners.videosz.com^
||feeds.videosz.com^ ||feeds.videosz.com^
||galleries.videosz.com^ ||galleries.videosz.com^
@ -2475,7 +2465,6 @@
||adsymptotic.com^ ||adsymptotic.com^
||adsyst.biz^ ||adsyst.biz^
||adszom.com^ ||adszom.com^
||ads.zynga.com^
||adt100.com^ ||adt100.com^
||adtag.cc^ ||adtag.cc^
||adtaily.com^ ||adtaily.com^
@ -4611,7 +4600,6 @@
||bavftcgoapga.com^ ||bavftcgoapga.com^
||b-aws.aol.com^ ||b-aws.aol.com^
||adinfo.aol.com^ ||adinfo.aol.com^
||ads.web.aol.com^
||advertising.aol.com^ ||advertising.aol.com^
||cdn.komentary.aol.com^ ||cdn.komentary.aol.com^
||dynamic.aol.com^ ||dynamic.aol.com^
@ -5753,8 +5741,6 @@
||ads1.msn.com^ ||ads1.msn.com^
||ads2.msn.com^ ||ads2.msn.com^
||ac3.msn.com^ ||ac3.msn.com^
||ads.eu.msn.com^
||ads.msn.com^
||adsyndication.msn.com^ ||adsyndication.msn.com^
||catalog.video.msn.com^ ||catalog.video.msn.com^
||c.msn.com^ ||c.msn.com^
@ -6425,7 +6411,6 @@
||cl.expedia.com^ ||cl.expedia.com^
||collector.prod.expedia.com^ ||collector.prod.expedia.com^
||oms.expedia.com^ ||oms.expedia.com^
||ads.expedia.com^
||clgserv.pro^ ||clgserv.pro^
||clgyhwaoh.com^ ||clgyhwaoh.com^
||clic2pub.com^ ||clic2pub.com^
@ -8154,7 +8139,6 @@
||dealswarm.com^ ||dealswarm.com^
||dealzone.co.za^ ||dealzone.co.za^
||de.as.pptv.com^ ||de.as.pptv.com^
||ads.aplus.pptv.com^
||app.aplus.pptv.com^ ||app.aplus.pptv.com^
||as.aplus.pptv.com^ ||as.aplus.pptv.com^
||img1.g.pptv.com^ ||img1.g.pptv.com^
@ -10929,7 +10913,6 @@
||geobeacon.ign.com^ ||geobeacon.ign.com^
||g.ign.com^ ||g.ign.com^
||wrapper.ign.com^ ||wrapper.ign.com^
||ads.ign.com^
||geobytes.com^ ||geobytes.com^
||geocompteur.com^ ||geocompteur.com^
||geo.connexionsecure.com^ ||geo.connexionsecure.com^
@ -11086,9 +11069,7 @@
||ggijrjktcld.com^ ||ggijrjktcld.com^
||gg.jkmeishi.com^ ||gg.jkmeishi.com^
||gg.kugou.com^ ||gg.kugou.com^
||ads.bssdl.kugou.com^
||adserviceretry.kugou.com^ ||adserviceretry.kugou.com^
||ads.service.kugou.com^
||fanxing.kugou.com^ ||fanxing.kugou.com^
||d.kugou.com^ ||d.kugou.com^
||gamebox.kugou.com^ ||gamebox.kugou.com^
@ -11373,7 +11354,6 @@
||plusone.google.com^ ||plusone.google.com^
||video-stats.video.google.com^ ||video-stats.video.google.com^
||adservice.google.com^ ||adservice.google.com^
||ads.google.com^
||afd.l.google.com^ ||afd.l.google.com^
||mobileads.google.com^ ||mobileads.google.com^
||pagead.google.com^ ||pagead.google.com^
@ -17421,7 +17401,6 @@
||nonstoppartner.de^ ||nonstoppartner.de^
||nonxt1.c.youtube.com^ ||nonxt1.c.youtube.com^
||s.youtube.com^ ||s.youtube.com^
||ads.youtube.com^
||noolablkcuyu.com^ ||noolablkcuyu.com^
||noonshdnkt.bid^ ||noonshdnkt.bid^
||noosaphy.net^ ||noosaphy.net^
@ -20147,7 +20126,6 @@
||puzzlingfall.com^ ||puzzlingfall.com^
||pvclouds.com^ ||pvclouds.com^
||pv.csdn.net^ ||pv.csdn.net^
||ads.csdn.net^
||dc2.csdn.net^ ||dc2.csdn.net^
||dc.csdn.net^ ||dc.csdn.net^
||kunpeng.csdn.net^ ||kunpeng.csdn.net^
@ -20692,7 +20670,6 @@
||qorvoxejr.com^ ||qorvoxejr.com^
||qosrridifvsr.com^ ||qosrridifvsr.com^
||qos.video.yimg.com^ ||qos.video.yimg.com^
||ads.yimg.com^
||qotuhsvlqlpnfd.com^ ||qotuhsvlqlpnfd.com^
||qotwtnckqrke.com^ ||qotwtnckqrke.com^
||qouiruhpxoa.com^ ||qouiruhpxoa.com^
@ -31799,7 +31776,6 @@
||img1.nend.net^ ||img1.nend.net^
||js1.nend.net^ ||js1.nend.net^
||output.nend.net^ ||output.nend.net^
||ads.sina.com^
||oascentral.sina.com^ ||oascentral.sina.com^
||pfpip.sina.com^ ||pfpip.sina.com^
||ad-android.51wnl.com^ ||ad-android.51wnl.com^
@ -31926,7 +31902,6 @@
||admin.louxia.org^ ||admin.louxia.org^
||admin.ninebox.cn^ ||admin.ninebox.cn^
||admin.vserv.mobi^ ||admin.vserv.mobi^
||ads.vserv.mobi^
||a.vserv.mobi^ ||a.vserv.mobi^
||c.vserv.mobi^ ||c.vserv.mobi^
||sf.vserv.mobi^ ||sf.vserv.mobi^
@ -31953,42 +31928,26 @@
||ads1.lfengmobile.com^ ||ads1.lfengmobile.com^
||ads2.opensubtitles.org^ ||ads2.opensubtitles.org^
||ads8.com^ ||ads8.com^
||ads.979799777.com^
||ads.adadapted.com^
||ads.adinall.com^
||app-tj.adinall.com^ ||app-tj.adinall.com^
||cdn.adinall.com^ ||cdn.adinall.com^
||pmp.adinall.com^ ||pmp.adinall.com^
||ads.admarvel.com^
||ads.admoda.com^
||ads.adxadserv.com^
||static.adxadserv.com^ ||static.adxadserv.com^
||adsame1.cnr.cn^ ||adsame1.cnr.cn^
||d1.cnr.cn^ ||d1.cnr.cn^
||ggdata1.cnr.cn^ ||ggdata1.cnr.cn^
||ads.aol.co.uk^
||adsapi.manhuaren.com^ ||adsapi.manhuaren.com^
||videojj.com^ ||videojj.com^
||starwave.com^ ||starwave.com^
||ads.b10f.jp^
||ads.ccstock.cn^
||ads.cdn.rovio.com^
||ads.ce.cn^
||ads.celtra.com^
||cache.celtra.com^ ||cache.celtra.com^
||cache-ssl.celtra.com^ ||cache-ssl.celtra.com^
||cdn.celtra.com^ ||cdn.celtra.com^
||track.celtra.com^ ||track.celtra.com^
||adscript.gmarket.co.kr^ ||adscript.gmarket.co.kr^
||ads.cyberctm.com^
||ads.data.pplive.com^
||gas.data.pplive.com^ ||gas.data.pplive.com^
||plt.data.pplive.com^ ||plt.data.pplive.com^
||ppvabs.pplive.com^ ||ppvabs.pplive.com^
||web.data.pplive.com^ ||web.data.pplive.com^
||ads.dixcom.com^
||adsdk.9imobi.com^ ||adsdk.9imobi.com^
||ads.dvworld.com.tw^
||adserve2.tom.com^ ||adserve2.tom.com^
||js.pub.tom.com^ ||js.pub.tom.com^
||slides.discovery.tom.com^ ||slides.discovery.tom.com^
@ -32003,8 +31962,6 @@
||adserviceretry.kglink.cn^ ||adserviceretry.kglink.cn^
||adservice.sigmob.cn^ ||adservice.sigmob.cn^
||adse.ximalaya.com^ ||adse.ximalaya.com^
||ads.feelingtouch.com^
||ads.fetnet.net^
||adsfs.oppomobile.com^ ||adsfs.oppomobile.com^
||adx.ads.oppomobile.com^ ||adx.ads.oppomobile.com^
||bdapi.ads.oppomobile.com^ ||bdapi.ads.oppomobile.com^
@ -32012,11 +31969,7 @@
||httpdns.push.oppomobile.com^ ||httpdns.push.oppomobile.com^
||i.flow.browser.oppomobile.com^ ||i.flow.browser.oppomobile.com^
||imagzine.oppomobile.com^ ||imagzine.oppomobile.com^
||ads.gionee.com^
||pdl.gionee.com^ ||pdl.gionee.com^
||ads.globo.com^
||ads.gmodules.com^
||ads.heyzap.com^
||adshow.58.com^ ||adshow.58.com^
||brandshow.58.com^ ||brandshow.58.com^
||jing.58.com^ ||jing.58.com^
@ -32029,47 +31982,26 @@
||adsmart.yicha.cn^ ||adsmart.yicha.cn^
||tongji.yicha.cn^ ||tongji.yicha.cn^
||tuiguang.yicha.cn^ ||tuiguang.yicha.cn^
||ads.matomymobile.com^
||ads.mdotm.com^
||cdn.mdotm.com^ ||cdn.mdotm.com^
||miidi.net^ ||miidi.net^
||ads.mobclix.com^
||data.mobclix.com^ ||data.mobclix.com^
||s.mobclix.com^ ||s.mobclix.com^
||ads.mobilityware.com^
||apps.mobilityware.com^ ||apps.mobilityware.com^
||adsmogo.com^ ||adsmogo.com^
||mopub.com^ ||mopub.com^
||ads.ninemsn.com.au^
||ads.n-ws.org^
||ads.oneway.mobi^
||ads.ookla.com^
||ads.passiontimes.hk^
||ad-specs.guoshipartners.com^ ||ad-specs.guoshipartners.com^
||ads.playboy.com^
||pei-ads.playboy.com^ ||pei-ads.playboy.com^
||ads.supfast.net^
||apk.supfast.net^ ||apk.supfast.net^
||apps.supfast.net^ ||apps.supfast.net^
||click.supfast.net^ ||click.supfast.net^
||img.supfast.net^ ||img.supfast.net^
||l.supfast.net^ ||l.supfast.net^
||ads.tripod.lycos.co.uk^
||fe.lea.lycos.co.uk^ ||fe.lea.lycos.co.uk^
||hit.webcentre.lycos.co.uk^ ||hit.webcentre.lycos.co.uk^
||ads.tripod.lycos.de^
||ads.tripod.lycos.es^
||ads.tripod.lycos.nl^
||ads.ttv.com.tw^
||adsunflower.com^ ||adsunflower.com^
||ads.unister-gmbh.de^
||ads.vipbaihe.com^
||voiceads.cn^ ||voiceads.cn^
||ads.waps.cn^
||app.waps.cn^ ||app.waps.cn^
||wapx.cn^ ||wapx.cn^
||ads.wepiao.com^
||ads.xxxad.net^
||adsys.chinacloudapp.cn^ ||adsys.chinacloudapp.cn^
||xdrig.com^ ||xdrig.com^
||adui.tg.meitu.com^ ||adui.tg.meitu.com^
@ -35757,3 +35689,11 @@
@@||ad.filmweb.pl^ @@||ad.filmweb.pl^
@@||ad.kazakinfo.com^ @@||ad.kazakinfo.com^
@@||ad.ourgame.com^ @@||ad.ourgame.com^
@@||ads.askgamblers.com^
@@||ads.fuckingmachines.com^
@@||ads.microsoft.com^
@@||ads.nipr.ac.jp^
@@||ads.pinterest.com^
@@||ads.tiktok.com^
@@||ads.twitter.com^
@@||ads.ultimatesurrender.com^

View File

@ -1,4 +1,4 @@
#TIME=20200117051511 #TIME=20200117062832
#URL=https://github.com/privacy-protection-tools/anti-AD #URL=https://github.com/privacy-protection-tools/anti-AD
[RULE] [RULE]
DOMAIN-SUFFIX,0024aaaa.com,REJECT DOMAIN-SUFFIX,0024aaaa.com,REJECT

View File

@ -63,7 +63,7 @@ $ARR_REGEX_LIST = array(
'/^9377[a-z]{2}\.com$/' => null, '/^9377[a-z]{2}\.com$/' => null,
// '/^[1-3]\.[0-9a-z\.\-]+\.(com|cn|net|org)$/' => null, // '/^[1-3]\.[0-9a-z\.\-]+\.(com|cn|net|org)$/' => null,
// '/^a1\.[0-9a-z\.]+\.(com|cn|org|net|me)$/' => null, // '/^a1\.[0-9a-z\.]+\.(com|cn|org|net|me)$/' => null,
'/^ad([0-9]|m)?\.[0-9a-z\.\-]+\.([a-z]+)?$/' => null, '/^ad([0-9]|m|s)?\.[0-9a-z\.\-]+\.([a-z]+)?$/' => null,
'/^affiliat(es|ion|e)\..+$/' => null, '/^affiliat(es|ion|e)\..+$/' => null,
'/^afgr[0-9]{1,2}\.com$/' => null, '/^afgr[0-9]{1,2}\.com$/' => null,
'/^analytics(\-|\.).+$/' => null, '/^analytics(\-|\.).+$/' => null,
@ -164,6 +164,7 @@ while(!feof($src_fp)){
} }
//按需写入白名单规则 //按需写入白名单规则
$wrote_whitelist = array();
$whiterule = file(WHITERULE_SRC, FILE_SKIP_EMPTY_LINES); $whiterule = file(WHITERULE_SRC, FILE_SKIP_EMPTY_LINES);
$ARR_WHITE_RULE_LIST = array_merge($ARR_WHITE_RULE_LIST, $whiterule); $ARR_WHITE_RULE_LIST = array_merge($ARR_WHITE_RULE_LIST, $whiterule);
foreach ($ARR_WHITE_RULE_LIST as $row){ foreach ($ARR_WHITE_RULE_LIST as $row){
@ -188,6 +189,10 @@ foreach ($ARR_WHITE_RULE_LIST as $row){
){ ){
continue; continue;
} }
if(array_key_exists($matches[1], $wrote_whitelist)){
continue;
}
$wrote_whitelist[$matches[1]] = null;
fwrite($new_fp, "@@||${matches[1]}^\n"); fwrite($new_fp, "@@||${matches[1]}^\n");
} }
} }