屏蔽各大视频网站播放前15秒30秒广告

本文详细介绍了如何在IP防火墙中添加过滤规则,包括针对特定域名和文件类型的规则设置,以及如何使用不同的操作(如丢弃、跳转)来控制网络流量。

/ip firewall filter
add action=drop chain=forward comment="\CC\DA\D1\B6\CA\D3\C6\B5\B9\E3\B8\E6  \
    \B9\E6\D4\F2\CE\CA\CC\E2\B7\B4\C0\A1QQ\A3\BA59473472" content=\
    "Host: livem.l.qq.com" disabled=no
add action=drop chain=forward comment="\D1\B8\C0\D7\BF\B4\BF\B4\B9\E3\B8\E6" \
    content="Host: logic.cpm.cm.sandai.net" disabled=no
add action=drop chain=forward comment="\C6\E6\D2\D5\B9\E3\B8\E6" content=\
    "Host: policy.cupid.qiyi.com" disabled=no
add action=jump chain=forward comment="PPS\B9\E3\B8\E6" content=\
    "Host: notice.ppstream.com" disabled=no jump-target=pps
add action=drop chain=pps comment="" content=.swf disabled=no
add action=drop chain=pps comment="" content=.flv disabled=no
add action=jump chain=forward comment="PPTV\B9\E3\B8\E6" content=\
    "Host: pp2.pptv.com" disabled=no jump-target=pptv
add action=drop chain=pptv comment="" content=iafp.pptv.com/ikan disabled=no
add action=jump chain=forward comment="\CB\D1\BA\FC\B9\E3\B8\E6" content=\
    "Host: images.sohu.com" disabled=no jump-target=sohu
add action=drop chain=sohu comment="" content=.mp4 disabled=no
add action=drop chain=sohu comment="" content=.swf disabled=no
add action=jump chain=forward comment="\CD\C1\B6\B9\B9\E3\B8\E6" content=\
    "Host: v2.tudou.com" disabled=no jump-target=tudou
add action=drop chain=tudou comment="" content=/tdcm/adcontrol disabled=no
add action=jump chain=forward comment="56\CD\F8" content=cdn.56imgs.com:88 \
    disabled=no jump-target=56
add action=drop chain=56 comment="" content=/flashApp/player_res/module/ad/ \
    disabled=no
add action=drop chain=forward comment="\D3\C5\BF\E1\B9\E3\B8\E6" content=\
    "{\"RS\":\"http://f.youku.com/player/getFlvPath/fileid/" disabled=no
add action=drop chain=forward comment="\BF\E16\B9\E3\B8\E6" content=\
    aagw.sdo.com disabled=no
add action=drop chain=forward comment="" content=\
    "\"sad\":\"http://main.gslb.ku6.com/" disabled=no
add action=drop chain=forward comment="\C0\D6\CA\D3\CD\F8" content=\
    <address>http://material.letv.com/ disabled=no
add action=drop chain=forward comment="\D0\C2\C0\CB" content=\
    "<ref><![CDATA[http://d1.sina.com.cn/" disabled=no

转载于:https://www.cnblogs.com/h2zZhou/p/5053006.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值