目前,在移动设备上,利用修改host,将视频广告域名指向本地屏蔽广告的方法依旧可用.于是可以在openwrt配置dnsmasq.

1.编辑dnsmasq配置文件

vi /etc/dnsmasq.conf

后面插入一行:

addn-hosts=/etc/adhost

用来添加host扩展文件

2.新建/etc/adhost,内容为:

127.0.0.1 localhost

#Baidu-iQiyi
127.0.0.1 ad.m.iqiyi.com
127.0.0.1 afp.qiyi.com
127.0.0.1 c.uaa.iqiyi.com
127.0.0.1 cloudpush.iqiyi.com
127.0.0.1 feedback.iqiyi.com
127.0.0.1 jsmsg.video.qiyi.com
127.0.0.1 mbdapp.iqiyi.com
127.0.0.1 mbdlog.iqiyi.com
127.0.0.1 mixer.cupid.iqiyi.com
127.0.0.1 msg.iqiyi.com
127.0.0.1 msg.video.qiyi.com
127.0.0.1 nl.rcd.iqiyi.com
127.0.0.1 track.cupid.qiyi.com
127.0.0.1 msga.71.am
127.0.0.1 msg.71.am
127.0.0.1 api.msg.pps.tv
127.0.0.1 data.video.qiyi.com
127.0.0.1 ifacelog.iqiyi.com
127.0.0.1 iface.iqiyi.com
#127.0.0.1 iface2.iqiyi.com
127.0.0.1 api.cupid.qiyi.com
127.0.0.1 irs01.com
127.0.0.1 iqiyi.irs01.com
127.0.0.1 msg.video.qiyi.com
#127.0.0.1 policy.video.iqiyi.com

#Baidu-PPStream
127.0.0.1 areainfo.ppstream.com
127.0.0.1 listso.m.areainfo.ppstream.com
127.0.0.1 mbfile.ppstream.com
127.0.0.1 notice.ppstream.com
127.0.0.1 stat.ppstream.com
127.0.0.1 br.pps.tv
127.0.0.1 click.ipd.pps.tv
127.0.0.1 count.game.pps.tv
127.0.0.1 g.pps.tv
127.0.0.1 nt.game.pps.tv
127.0.0.1 game.pps.tv
127.0.0.1 in.pps.tv
127.0.0.1 ipdstat.pps.tv
127.0.0.1 mini.pps.tv
127.0.0.1 mobile.game.pps.tv
127.0.0.1 msg.y.pps.tv
127.0.0.1 pl.pps.tv
127.0.0.1 source.click.ipd.pps.tv
127.0.0.1 spider.pps.tv
127.0.0.1 stat.game.pps.tv
127.0.0.1 stat.y.pps.tv
127.0.0.1 ugcad.pps.tv
127.0.0.1 ugcs.pps.tv
127.0.0.1 wt.game.pps.tv
127.0.0.1 br.ppstv.net
127.0.0.1 download.webscache.com
127.0.0.1 update.111222.cn
127.0.0.1 update.base-service.net

#QQ-Live
127.0.0.1 aid.video.qq.com
127.0.0.1 c.l.qq.com
127.0.0.1 livep.l.qq.com
127.0.0.1 lives.l.qq.com
127.0.0.1 news.l.qq.com
127.0.0.1 p.l.qq.com
127.0.0.1 t.l.qq.com
127.0.0.1 rlog.video.qq.com
127.0.0.1 la.gtimg.com
127.0.0.1 pgdt.gtimg.cn

#SohuTV
127.0.0.1 agn.aty.sohu.com
127.0.0.1 aty.tv.sohu.com
127.0.0.1 atyt.tv.sohu.com
127.0.0.1 click2.hd.sohu.com
127.0.0.1 count.vrs.sohu.com
127.0.0.1 ctr.hd.sohu.com
127.0.0.1 dev.app.yule.sohu.com
127.0.0.1 m.aty.sohu.com
127.0.0.1 mmg.aty.sohu.com
127.0.0.1 p.aty.sohu.com
127.0.0.1 pb.hd.sohu.com
127.0.0.1 pg.aty.sohu.com
127.0.0.1 pv.hd.sohu.com
127.0.0.1 stat.m.tv.sohu.com
127.0.0.1 upgrade.m.tv.sohu.com
127.0.0.1 v.aty.sohu.com
127.0.0.1 vg.aty.sohu.com
127.0.0.1 vm.aty.sohu.com
127.0.0.1 click.hd.sohu.com.cn
127.0.0.1 mb.hd.sohu.com.cn
127.0.0.1 pb.hd.sohu.com.cn

#Youku
127.0.0.1 ad.api.3g.youku.com
127.0.0.1 ad.atm.youku.com
127.0.0.1 api.gamex.mobile.youku.com
127.0.0.1 atm.youku.com
127.0.0.1 c.miaozhen.atm.youku.com
127.0.0.1 cm.miaozhen.atm.youku.com
127.0.0.1 count.atm.youku.com
127.0.0.1 dl.m.youku.com
127.0.0.1 e.stat.youku.com
127.0.0.1 fvid.atm.youku.com
127.0.0.1 html.atm.youku.com
127.0.0.1 lstat.youku.com
127.0.0.1 mf.atm.youku.com
127.0.0.1 p-log.ykimg.com
127.0.0.1 passport-log.youku.com
127.0.0.1 push.m.youku.com
127.0.0.1 stat.youku.com
127.0.0.1 static.atm.youku.com
127.0.0.1 td.atm.youku.com
127.0.0.1 test.gamex.mobile.youku.com
127.0.0.1 v2html.atm.youku.com
127.0.0.1 valb.atm.youku.com
127.0.0.1 valc.atm.youku.com
127.0.0.1 valf.atm.youku.com
127.0.0.1 valo.atm.youku.com
127.0.0.1 valp.atm.youku.com
127.0.0.1 vhtml.atm.youku.com
127.0.0.1 vhtml.youku.com
127.0.0.1 vid.atm.youku.com
127.0.0.1 walp.atm.youku.com

#Baofeng
127.0.0.1 action.logger.baofeng.com
127.0.0.1 androidlog.shouji.baofeng.com
127.0.0.1 clicklog.hd.baofeng.com
127.0.0.1 clicklog.moviebox.baofeng.com
127.0.0.1 dailylog.storm.baofeng.com
127.0.0.1 errorcode.logger.baofeng.com
127.0.0.1 eventlog.hd.baofeng.com
127.0.0.1 gw.baofeng.com
127.0.0.1 houyi.logger.baofeng.com
127.0.0.1 listlog.baofeng.net
127.0.0.1 logger.treexml.baofeng.com
127.0.0.1 market.shouji.baofeng.com
127.0.0.1 midinfo.baofeng.com
127.0.0.1 sclog.moviebox.baofeng.com
127.0.0.1 tips.logger.baofeng.com
127.0.0.1 tree.logger.baofeng.com
127.0.0.1 vdinfo.baofeng.com
127.0.0.1 videodown.baofeng.com
127.0.0.1 yclick.logger.baofeng.com
127.0.0.1 y2click.logger.baofeng.com
127.0.0.1 yactive.logger.baofeng.com
127.0.0.1 ypv.logger.baofeng.com
127.0.0.1 boxlist.baofeng.net
127.0.0.1 clicklog.moviebox.baofeng.net
127.0.0.1 log.houyi.baofeng.net
127.0.0.1 ploy.baofeng.net
127.0.0.1 pvlog.moviebox.baofeng.net
127.0.0.1 web.houyi.baofeng.net
127.0.0.1 wl.houyi.baofeng.net
127.0.0.1 xs.houyi.baofeng.net

#PPTV
127.0.0.1 asimgs.pplive.cn
127.0.0.1 ads.data.pplive.com
127.0.0.1 afp.pplive.com
127.0.0.1 afv.pplive.com
127.0.0.1 caipiao.pplive.com
127.0.0.1 dh.pplive.com
127.0.0.1 g.pplive.com
127.0.0.1 ins-stat.pplive.com
127.0.0.1 ins-version.pplive.com
127.0.0.1 ins.pplive.com
127.0.0.1 live.v2.pplive.com
127.0.0.1 pp1.pplive.com
127.0.0.1 pp2.as.pplive.cn
127.0.0.1 up.pplive.com
127.0.0.1 as.aplus.pptv.com
127.0.0.1 de.as.pptv.com
127.0.0.1 dl4.vas.pptv.com
127.0.0.1 g.pptv.com
127.0.0.1 ga.pptv.com
127.0.0.1 iafp.pptv.com
127.0.0.1 jp.as.pptv.com
127.0.0.1 pp2.pptv.com
127.0.0.1 ppsj.pptv.com
127.0.0.1 static.g.pptv.com
127.0.0.1 tips.passport.pptv.com
127.0.0.1 tj.g.pptv.com
127.0.0.1 vas.aplus.pptv.com
127.0.0.1 wafp.pptv.com
127.0.0.1 way.pptv.com
127.0.0.1 wstat.pptv.com
127.0.0.1 zt.pptv.com
127.0.0.1 h.g1d.net
127.0.0.1 p.g1d.net
127.0.0.1 ppva.g1d.net
127.0.0.1 video-va.g1d.net

#Letv
127.0.0.1 ark.letv.com
127.0.0.1 plog.dc.letv.com
127.0.0.1 dc.letv.com
127.0.0.1 dev.dc.letv.com
127.0.0.1 pro.letv.com
127.0.0.1 pro.hoye.letv.com
127.0.0.1 stat.letv.com

#irs01
127.0.0.1 bitauto.irs01.com
127.0.0.1 h.irs01.com
127.0.0.1 irs01.com
127.0.0.1 letv.irs01.com
127.0.0.1 m.irs01.com
127.0.0.1 sohu.irs01.com
127.0.0.1 pcauto.irs01.com
127.0.0.1 irs01.net

#irs09
127.0.0.1 irs09.com
127.0.0.1 static.irs09.com

保存

3.重启dnsmasq服务

/etc/init.d/dnsmasq restart

即可屏蔽常见APP的视频广告