Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
add new rule: banlist without ADBlock
Browse files Browse the repository at this point in the history
test to block youtube advs #33
  • Loading branch information
h2y committed Aug 2, 2017
1 parent aa41f89 commit 3475b6a
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 24 deletions.
1 change: 1 addition & 0 deletions factory/build_confs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# except sr_head and sr_foot
confs_names = [
'sr_top500_banlist_ad',
'sr_top500_banlist',
'sr_top500_whitelist_ad',
'sr_top500_whitelist',
'sr_adb'
Expand Down
24 changes: 19 additions & 5 deletions factory/manual_reject.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 手工定义的 Reject 列表

#百度
#百度(可能有多余项)
eclick.baidu.com
entry.baidu.com
hmma.baidu.com
Expand All @@ -19,7 +19,7 @@ t12.baidu.com
#站长统计
google-analytics.com

#广告联盟
#广告联盟(可能有多余项)
doubleclick.net
zhihu-analytics.zhihu.com
log.cmbchina.com
Expand Down Expand Up @@ -90,7 +90,7 @@ youmi.net
zhiziyun.com
segment.com

#新浪
#新浪(可能有多余项)
ad.sina.com.cn
adm.leju.sina.com.cn
atm.sina.com
Expand All @@ -99,7 +99,7 @@ sax.sina.cn
sax.sina.com.cn
tjs.sjs.sinajs.cn

#微博
#微博(可能有多余项)
c.biz.weibo.com
game.weibo.com
c.wcpt.biz.weibo.com
Expand All @@ -124,7 +124,7 @@ pay.mobile.sina.cn
gorgon.youdao.com
impservice.youdao.com

# 爱奇艺 PPS
# 爱奇艺 PPS(可能有多余项)
ad.m.iqiyi.com
afp.iqiyi.com
api.cupid.iqiyi.com
Expand Down Expand Up @@ -162,3 +162,17 @@ msga.cupid.iqiyi.com
27.221.89.128/28
60.211.171.128/29
60.211.211.1/32

# Youtube(可能有多余项)
ads.youtube.com
azabu-u.ac.jp
couchcoaster.jp
crt.comodoca.com
delivery.dmkt-sp.jp
ehg-youtube.hitbox.com
m-78.jp
nichibenren.or.jp
nicorette.co.kr
ssl-youtube.2cnt.net
youtube.112.2o7.net
youtube.2cnt.net
22 changes: 22 additions & 0 deletions factory/template/sr_top500_banlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# 黑名单中包含了境外网站中无法访问的那些,对不确定的网站则尽可能地直连。
#
# 代理:top500 网站中不可直连的境外网站
# 直连:默认直连境外其余网站、中国网站
# 不包含广告过滤
#


{{manual_proxy}}
{{manual_direct}}

{{top500_proxy}}

DOMAIN-KEYWORD,google,Proxy

IP-CIDR,192.168.0.0/16,DIRECT
IP-CIDR,10.0.0.0/8,DIRECT
IP-CIDR,172.16.0.0/12,DIRECT
IP-CIDR,127.0.0.0/8,DIRECT

FINAL,direct
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

- [黑名单过滤 + 广告](#黑名单过滤--广告)
- [白名单过滤 + 广告](#白名单过滤--广告)
- [黑名单过滤](#黑名单过滤)
- [白名单过滤](#白名单过滤)
- 神-奇-分-隔-符
- [常见问题](#常见问题)
Expand Down Expand Up @@ -48,6 +49,19 @@
![](https://user-images.githubusercontent.com/12909077/27505553-ef1b86c6-58d4-11e7-9fb1-eafbd0c5dc81.png)


## 黑名单过滤

现在很多浏览器都自带了广告过滤功能,而广告过滤的规则其实较为臃肿,如果你不需要全局地过滤 App 内置广告和视频广告,可以选择这个不带广告过滤的版本。

- 代理:top500 网站中不可直连的境外网站
- 直连:默认直连境外其余网站、中国网站
- 不包含广告过滤

规则地址:<https://raw.githubusercontent.com/h2y/Shadowrocket-ADBlock-Rules/master/sr_top500_banlist.conf>

![](https://user-images.githubusercontent.com/12909077/28882175-0b25a244-77dd-11e7-8939-e9024f74f723.png)


## 白名单过滤

现在很多浏览器都自带了广告过滤功能,而广告过滤的规则其实较为臃肿,如果你不需要全局地过滤 App 内置广告和视频广告,可以选择这个不带广告过滤的版本。
Expand Down
25 changes: 19 additions & 6 deletions sr_adb.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Best Shadowrocket Rules (https://github.com/h2y/Shadowrocket-ADBlock-Rules)
# by Moshel
# build time: 2017-07-27 18:12:10
# build time: 2017-08-02 23:49:12

[General]
bypass-system = true
Expand All @@ -21,7 +21,7 @@ dns-server = system, 1.2.4.8, 119.29.29.29, 8.8.8.8, 8.8.4.4
#

# 手工定义的 Reject 列表
#百度
#百度(可能有多余项)
DOMAIN-SUFFIX,eclick.baidu.com,Reject
DOMAIN-SUFFIX,entry.baidu.com,Reject
DOMAIN-SUFFIX,hmma.baidu.com,Reject
Expand All @@ -38,7 +38,7 @@ DOMAIN-SUFFIX,t11.baidu.com,Reject
DOMAIN-SUFFIX,t12.baidu.com,Reject
#站长统计
DOMAIN-SUFFIX,google-analytics.com,Reject
#广告联盟
#广告联盟(可能有多余项)
DOMAIN-SUFFIX,doubleclick.net,Reject
DOMAIN-SUFFIX,zhihu-analytics.zhihu.com,Reject
DOMAIN-SUFFIX,log.cmbchina.com,Reject
Expand Down Expand Up @@ -108,15 +108,15 @@ DOMAIN-SUFFIX,wqmobile.com,Reject
DOMAIN-SUFFIX,youmi.net,Reject
DOMAIN-SUFFIX,zhiziyun.com,Reject
DOMAIN-SUFFIX,segment.com,Reject
#新浪
#新浪(可能有多余项)
DOMAIN-SUFFIX,ad.sina.com.cn,Reject
DOMAIN-SUFFIX,adm.leju.sina.com.cn,Reject
DOMAIN-SUFFIX,atm.sina.com,Reject
DOMAIN-SUFFIX,dcads.sina.com.cn,Reject
DOMAIN-SUFFIX,sax.sina.cn,Reject
DOMAIN-SUFFIX,sax.sina.com.cn,Reject
DOMAIN-SUFFIX,tjs.sjs.sinajs.cn,Reject
#微博
#微博(可能有多余项)
DOMAIN-SUFFIX,c.biz.weibo.com,Reject
DOMAIN-SUFFIX,game.weibo.com,Reject
DOMAIN-SUFFIX,c.wcpt.biz.weibo.com,Reject
Expand All @@ -139,7 +139,7 @@ DOMAIN-SUFFIX,pay.mobile.sina.cn,Reject
# 有道词典
DOMAIN-SUFFIX,gorgon.youdao.com,Reject
DOMAIN-SUFFIX,impservice.youdao.com,Reject
# 爱奇艺 PPS
# 爱奇艺 PPS(可能有多余项)
DOMAIN-SUFFIX,ad.m.iqiyi.com,Reject
DOMAIN-SUFFIX,afp.iqiyi.com,Reject
DOMAIN-SUFFIX,api.cupid.iqiyi.com,Reject
Expand Down Expand Up @@ -177,6 +177,19 @@ IP-CIDR,183.221.247.189/22,Reject
IP-CIDR,27.221.89.128/28,Reject
IP-CIDR,60.211.171.128/29,Reject
IP-CIDR,60.211.211.1/32,Reject
# Youtube(可能有多余项)
DOMAIN-SUFFIX,ads.youtube.com,Reject
DOMAIN-SUFFIX,azabu-u.ac.jp,Reject
DOMAIN-SUFFIX,couchcoaster.jp,Reject
DOMAIN-SUFFIX,crt.comodoca.com,Reject
DOMAIN-SUFFIX,delivery.dmkt-sp.jp,Reject
DOMAIN-SUFFIX,ehg-youtube.hitbox.com,Reject
DOMAIN-SUFFIX,m-78.jp,Reject
DOMAIN-SUFFIX,nichibenren.or.jp,Reject
DOMAIN-SUFFIX,nicorette.co.kr,Reject
DOMAIN-SUFFIX,ssl-youtube.2cnt.net,Reject
DOMAIN-SUFFIX,youtube.112.2o7.net,Reject
DOMAIN-SUFFIX,youtube.2cnt.net,Reject

# 手工定义的 Proxy 列表
#Telegram
Expand Down
146 changes: 146 additions & 0 deletions sr_top500_banlist.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# Best Shadowrocket Rules (https://github.com/h2y/Shadowrocket-ADBlock-Rules)
# by Moshel
# build time: 2017-08-02 23:49:12

[General]
bypass-system = true
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local, e.crashlytics.com, captive.apple.com
bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32
dns-server = system, 1.2.4.8, 119.29.29.29, 8.8.8.8, 8.8.4.4
[Rule]
#
# 黑名单中包含了境外网站中无法访问的那些,对不确定的网站则尽可能地直连。
#
# 代理:top500 网站中不可直连的境外网站
# 直连:默认直连境外其余网站、中国网站
# 不包含广告过滤
#


# 手工定义的 Proxy 列表
#Telegram
IP-CIDR,67.198.55.0/24,Proxy
IP-CIDR,91.108.4.0/22,Proxy
IP-CIDR,91.108.8.0/22,Proxy
IP-CIDR,91.108.12.0/22,Proxy
IP-CIDR,91.108.16.0/22,Proxy
IP-CIDR,91.108.56.0/22,Proxy
IP-CIDR,109.239.140.0/24,Proxy
IP-CIDR,149.154.160.0/20,Proxy
IP-CIDR,149.154.164.0/22,Proxy
IP-CIDR,149.154.168.0/22,Proxy
IP-CIDR,149.154.172.0/22,Proxy
#28 for http://www.bbc.com/zhongwen/simp
DOMAIN-SUFFIX,bbc.com,Proxy
#instagram
DOMAIN-SUFFIX,cdninstagram.com,Proxy
#disqus
DOMAIN-SUFFIX,disquscdn.com,Proxy
DOMAIN-SUFFIX,gist.github.com,Proxy
# 首页直连,但中文的维基百科必须翻墙
DOMAIN-SUFFIX,wikipedia.org,Proxy
#20 开车
DOMAIN-SUFFIX,t66y.com,Proxy
DOMAIN-SUFFIX,91porn.com,Proxy

# 手工定义的 Direct 列表


# top500 proxy list update time: 2017-07-03 12:42:00
DOMAIN-SUFFIX,4shared.com,Proxy
DOMAIN-SUFFIX,amazon.co.uk,Proxy
DOMAIN-SUFFIX,archive.org,Proxy
DOMAIN-SUFFIX,ask.com,Proxy
DOMAIN-SUFFIX,bbc.co.uk,Proxy
DOMAIN-SUFFIX,beeg.com,Proxy
DOMAIN-SUFFIX,blog.jp,Proxy
DOMAIN-SUFFIX,blogger.com,Proxy
DOMAIN-SUFFIX,blogspot.com,Proxy
DOMAIN-SUFFIX,blogspot.com.br,Proxy
DOMAIN-SUFFIX,blogspot.in,Proxy
DOMAIN-SUFFIX,blogspot.jp,Proxy
DOMAIN-SUFFIX,bloomberg.com,Proxy
DOMAIN-SUFFIX,bongacams.com,Proxy
DOMAIN-SUFFIX,bp.blogspot.com,Proxy
DOMAIN-SUFFIX,chaturbate.com,Proxy
DOMAIN-SUFFIX,cloudfront.net,Proxy
DOMAIN-SUFFIX,dailymail.co.uk,Proxy
DOMAIN-SUFFIX,dailymotion.com,Proxy
DOMAIN-SUFFIX,disqus.com,Proxy
DOMAIN-SUFFIX,doubleclick.net,Proxy
DOMAIN-SUFFIX,dropbox.com,Proxy
DOMAIN-SUFFIX,ebay.co.uk,Proxy
DOMAIN-SUFFIX,eksisozluk.com,Proxy
DOMAIN-SUFFIX,elpais.com,Proxy
DOMAIN-SUFFIX,exoclick.com,Proxy
DOMAIN-SUFFIX,extratorrent.cc,Proxy
DOMAIN-SUFFIX,facebook.com,Proxy
DOMAIN-SUFFIX,fbcdn.net,Proxy
DOMAIN-SUFFIX,fc2.com,Proxy
DOMAIN-SUFFIX,flickr.com,Proxy
DOMAIN-SUFFIX,flipkart.com,Proxy
DOMAIN-SUFFIX,globaloffers.link,Proxy
DOMAIN-SUFFIX,goo.gl,Proxy
DOMAIN-SUFFIX,hclips.com,Proxy
DOMAIN-SUFFIX,hootsuite.com,Proxy
DOMAIN-SUFFIX,hurriyet.com.tr,Proxy
DOMAIN-SUFFIX,icicibank.com,Proxy
DOMAIN-SUFFIX,ign.com,Proxy
DOMAIN-SUFFIX,instagram.com,Proxy
DOMAIN-SUFFIX,instructure.com,Proxy
DOMAIN-SUFFIX,livedoor.jp,Proxy
DOMAIN-SUFFIX,ltn.com.tw,Proxy
DOMAIN-SUFFIX,media.tumblr.com,Proxy
DOMAIN-SUFFIX,medium.com,Proxy
DOMAIN-SUFFIX,mega.nz,Proxy
DOMAIN-SUFFIX,messenger.com,Proxy
DOMAIN-SUFFIX,naver.jp,Proxy
DOMAIN-SUFFIX,nyaa.se,Proxy
DOMAIN-SUFFIX,nytimes.com,Proxy
DOMAIN-SUFFIX,ok.ru,Proxy
DOMAIN-SUFFIX,pinimg.com,Proxy
DOMAIN-SUFFIX,pinterest.com,Proxy
DOMAIN-SUFFIX,pixnet.net,Proxy
DOMAIN-SUFFIX,pornhub.com,Proxy
DOMAIN-SUFFIX,putlocker.is,Proxy
DOMAIN-SUFFIX,reddituploads.com,Proxy
DOMAIN-SUFFIX,redtube.com,Proxy
DOMAIN-SUFFIX,reuters.com,Proxy
DOMAIN-SUFFIX,shutterstock.com,Proxy
DOMAIN-SUFFIX,slideshare.net,Proxy
DOMAIN-SUFFIX,spankbang.com,Proxy
DOMAIN-SUFFIX,t.co,Proxy
DOMAIN-SUFFIX,telegram.org,Proxy
DOMAIN-SUFFIX,telegraph.co.uk,Proxy
DOMAIN-SUFFIX,thepiratebay.org,Proxy
DOMAIN-SUFFIX,tradeadexchange.com,Proxy
DOMAIN-SUFFIX,tube8.com,Proxy
DOMAIN-SUFFIX,tumblr.com,Proxy
DOMAIN-SUFFIX,twimg.com,Proxy
DOMAIN-SUFFIX,twitter.com,Proxy
DOMAIN-SUFFIX,upornia.com,Proxy
DOMAIN-SUFFIX,vimeo.com,Proxy
DOMAIN-SUFFIX,w3schools.com,Proxy
DOMAIN-SUFFIX,wsj.com,Proxy
DOMAIN-SUFFIX,xnxx.com,Proxy
DOMAIN-SUFFIX,xvideos.com,Proxy
DOMAIN-SUFFIX,youtube.com,Proxy
DOMAIN-SUFFIX,ytimg.com,Proxy
DOMAIN-SUFFIX,zendesk.com,Proxy
DOMAIN-SUFFIX,zoho.com,Proxy
DOMAIN-SUFFIX,zone-telechargement.com,Proxy


DOMAIN-KEYWORD,google,Proxy

IP-CIDR,192.168.0.0/16,DIRECT
IP-CIDR,10.0.0.0/8,DIRECT
IP-CIDR,172.16.0.0/12,DIRECT
IP-CIDR,127.0.0.0/8,DIRECT

FINAL,direct

[URL Rewrite]
^http://(www.)?google.cn https://www.google.com header

# By Moshel @ https://hzy.pw/
Loading

0 comments on commit 3475b6a

Please sign in to comment.