Compare commits

..

53 Commits

Author SHA1 Message Date
Loyalsoldier dd98dfc842 Remove longbridge from direct-list 2026-10-27 11:54:37 +08:00
Michael 7def62ac58 Remove erebor.douban.com from reject-list (#531) 2026-10-12 19:45:31 +08:00
Loyalsoldier e566b1d189 Add multiple ad & tracking domains into reject-list 2026-08-01 16:55:33 +08:00
Loyalsoldier 1d4485dbe0 Remove us.ci from direct-list (#515) 2026-06-19 21:32:25 +08:00
JimmFly 91eb487624 Remove lovart.ai from direct-list (#492) 2026-03-27 01:53:24 +08:00
Aethersailor c894179ead Remove nikke related domains from direct-list (#480) 2026-01-15 01:21:59 +08:00
Loyalsoldier 2d123e7d89 Remove umeng.com from reject-list 2025-08-21 18:18:27 +08:00
Loyalsoldier ad60068de9 Remove busuanzi.ibruce.info from reject-list 2025-08-21 18:10:39 +08:00
Loyalsoldier d146cca273 Remove itiger.com from direct-list 2025-08-21 18:01:47 +08:00
Loyalsoldier 70e70dc5cd Remove vol.moe related domains from direct-list
Reference: https://github.com/Loyalsoldier/v2ray-rules-dat/issues/395
2025-08-21 16:38:31 +08:00
Loyalsoldier 1ce74123ca Remove naixi.net from direct-list 2025-08-19 22:23:26 +08:00
yoier 71328ae792 Remove pikpak from direct-list (#421) 2025-08-19 20:18:20 +08:00
Loyalsoldier e02ced564b Remove ustclug.org from direct-list 2025-08-19 20:11:45 +08:00
Loyalsoldier 958d4d908a Remove weixinbridge.com from proxy-list 2024-06-24 11:44:18 +08:00
Loyalsoldier e2306ea1ef Add services.googleapis.cn into proxy-list 2024-04-02 19:52:34 +08:00
Loyalsoldier 4d66f447fd Remove fabric.io from reject-list 2024-03-21 02:58:23 +08:00
Loyalsoldier 6c19fb0223 Remove wl.spotify.com from reject-list 2023-11-04 01:20:19 +08:00
Chi Lei a427714bca Remove cdn.onesignal.com from reject-list (#306) 2023-07-28 01:52:34 +08:00
reunravel 464799db66 Remove click.discord.com from reject-list (#279) 2023-04-11 09:27:05 +08:00
Loyalsoldier 9d85613ad9 Remove qlogo.cn from reject-list 2022-11-21 00:37:04 +08:00
Loyalsoldier 84b53d9061 Remove cnbeta from direct-list 2022-10-25 21:29:52 +08:00
Loyalsoldier a9e8840d82 Remove mail.tsinghua.edu.cn from reject-list 2022-10-24 15:16:58 +08:00
Loyalsoldier 0ea31314fb Remove click.redditmail.com from reject-list 2022-07-20 21:30:23 +08:00
Loyalsoldier 944333b0ab Remove telegra.ph from reject-list 2022-07-08 22:52:14 +08:00
Loyalsoldier 9780cff17b Remove ctrip.com from reject-list 2022-06-29 00:36:35 +08:00
Loyalsoldier 2c7de85361 Remove emacs-china.org from direct-list 2022-06-26 19:30:43 +08:00
Loyalsoldier dd27c6b28d Remove t.co from reject-list 2022-05-12 12:43:18 +08:00
Loyalsoldier 0193852119 Remove app.chat.xiaomi.net & resolver.msg.xiaomi.net from reject-list
Fixes https://github.com/Loyalsoldier/v2ray-rules-dat/issues/169
2022-01-01 13:55:41 +08:00
Loyalsoldier 4fdfd10083 Remove tongji.baidu.com from reject-list 2021-07-25 03:23:46 +08:00
Loyalsoldier 8bb37b5b03 Remove hostloc.com from direct-list 2021-03-16 16:20:42 +08:00
七月与良言 ba2cfc9371 Remove alibaba & alimama domains from reject-list (#84) 2021-03-04 18:12:47 +08:00
hackeye 700ec5f05b Remove sf3-ttcdn-tos.pstatp.com from reject-list (#83) 2021-03-01 19:52:35 +08:00
Loyalsoldier 4d590fa305 Remove kh.google.com from direct-list.txt 2021-01-30 11:22:18 +08:00
Loyalsoldier 7dd299e63d Remove .top TLD from direct-tld-list.txt 2020-12-23 10:02:30 +08:00
Loyalsoldier 3adea4962e Remove s.youtube.com from reject-list 2020-12-16 09:44:58 +08:00
Loyalsoldier e4b643244b Remove mx.technolutions.net from reject-list 2020-12-14 08:56:58 +08:00
Loyalsoldier d0d36e9d04 Remove tv.sohu.com from reject-list.txt 2020-10-25 08:19:00 +08:00
Loyalsoldier a302dab636 Remove analytics.google.com from reject-list 2020-10-14 20:52:42 +08:00
Loyalsoldier d00d0d5af2 Remove jav321.com from reject-list 2020-08-11 23:25:05 +08:00
Loyalsoldier 624531bc78 Add knet.cn 2020-07-09 20:49:22 +08:00
Loyalsoldier a11b8545fd Add 4paradigm.com 2020-07-09 13:41:21 +08:00
Loyalsoldier f2818c5f23 Add supertop.co 2020-07-03 08:06:48 +08:00
Loyalsoldier 8232c86300 Add pingjs.qq.com 2020-06-21 14:03:32 +08:00
Loyalsoldier 651786914a Add ue.yeyoucdn.com 2020-06-18 15:23:11 +08:00
Loyalsoldier 372605c10a Add addthis.com & addthisedge.com 2020-06-11 15:28:25 +08:00
Loyalsoldier eece658053 Remove icons.mydrivers.com from reject-list 2020-06-06 21:55:25 +08:00
Loyalsoldier 33d075482e Add d.ifengimg.com 2020-06-05 20:27:29 +08:00
loyalsoldier 72fcd1792a Add weibo.com & www.baidu.com 2020-05-09 21:59:49 +08:00
Loyalsoldier a0d0069877 Remove bdtj.tagtic.cn from reject-list 2020-04-21 10:43:31 +08:00
Loyalsoldier 4d82f484fb Remove tagtic.cn from reject-list 2020-04-21 10:42:10 +08:00
loyalsoldier b5f7f91bbd Add need-to-remove lists 2020-03-10 10:45:18 +08:00
loyalsoldier de9bd9a473 Add findRedundantDomain.py Python script 2020-03-02 02:06:11 +08:00
loyalsoldier 335b4d5b39 Add manual lists 2020-03-01 17:21:07 +08:00
10 changed files with 170 additions and 272 deletions
-141
View File
@@ -1,141 +0,0 @@
name: Build v2ray rules dat files
on:
schedule:
- cron: "0 19 * * *"
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Set GOPATH
run: |
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
echo "::set-env name=GREEN::\033[0;32m"
echo "::set-env name=NC::\033[0m"
echo "::set-env name=GEOIP_REPO::github.com/v2ray/geoip"
echo "::set-env name=GEOSITE_REPO::github.com/v2ray/domain-list-community"
echo "::set-env name=GFWLIST_URL::https://cokebar.github.io/gfwlist2dnsmasq/gfwlist_domain.txt"
echo "::set-env name=ADBLOCK_URL::https://raw.githubusercontent.com/h2y/Shadowrocket-ADBlock-Rules/master/factory/resultant/ad.list"
echo "::set-env name=Profiles_URL::https://raw.githubusercontent.com/ConnersHua/Profiles/master/Shadow/Pro.conf"
echo "::set-env name=CHINA_DOMAINS_URL::https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf"
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
shell: bash
- name: Get GeoLite2
run: |
curl -sSL -O https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country-CSV.zip
unzip GeoLite2-Country-CSV.zip
rm -f GeoLite2-Country-CSV.zip
mv GeoLite2* geoip
- name: Generate geoip.dat file
run: |
go get -u -v -insecure $GEOIP_REPO
geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv
mkdir -p ./publish
mv ./geoip.dat ./publish/
- name: Download geosite project
run: |
go get -u -v -insecure $GEOSITE_REPO
- name: Get and add gfwlist into geolocation-!cn
run: |
cd $GOPATH/src/$GEOSITE_REPO/data
curl -sSL $GFWLIST_URL > gfwlist
echo "include:gfwlist" >> geolocation-\!cn
- name: Get and add proxy domains from @ConnersHua/Profiles into geolocation-!cn
run: |
cd $GOPATH/src/$GEOSITE_REPO/data
curl -sSL $Profiles_URL | grep PROXY | grep DOMAIN | cut -d ',' -f 2 > profileproxy
echo "include:profileproxy" >> geolocation-\!cn
- name: Get and add direct domains from @ConnersHua/Profiles into cn
run: |
cd $GOPATH/src/$GEOSITE_REPO/data
curl -sSL $Profiles_URL | grep DIRECT | grep DOMAIN | cut -d ',' -f 2 > profiledirect
echo "include:profiledirect" >> cn
- name: Get and add chinalist into cn
run: |
cd $GOPATH/src/$GEOSITE_REPO/data
curl -sSL $CHINA_DOMAINS_URL | awk -F '/' '{print $2}' > chinalist
echo "include:chinalist" >> cn
- name: Get and add reject domains from @ConnersHua/Profiles into category-ads-all
run: |
cd $GOPATH/src/$GEOSITE_REPO/data
curl -sSL $Profiles_URL | grep REJECT | grep DOMAIN | cut -d ',' -f 2 > profilereject
echo "include:profilereject" >> category-ads-all
- name: Get and add reject domains from @h2y/Shadowrocket-ADBlock-Rules into category-ads-all
run: |
cd $GOPATH/src/$GEOSITE_REPO/data
curl -sSL $ADBLOCK_URL | awk '!/[0-9]+$/ { print }' > adblockreject
echo "include:adblockreject" >> category-ads-all
- name: Build geosite.dat file
run: |
domain-list-community
mv ./dlc.dat ./publish/geosite.dat
- name: List above process results
run: |
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
echo "list files in data folder"
ls -lah $GOPATH/src/$GEOSITE_REPO/data
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
echo "list last 10 lines of cn file"
tail -n 10 $GOPATH/src/$GEOSITE_REPO/data/cn
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
echo "list last 10 lines of geolocation-!cn file"
tail -n 10 $GOPATH/src/$GEOSITE_REPO/data/geolocation-\!cn
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
echo "list last 10 lines of category-ads-all file"
tail -n 10 $GOPATH/src/$GEOSITE_REPO/data/category-ads-all
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
echo "list files in publish folder"
ls -lah ./publish
echo ">>>>>>>>>>>>>>>>>>>>>>>>"
echo -e "${GREEN}完成啦!🌈${NC}"
- name: Set release variables
run: |
echo "::set-env name=NAME::Released on $(date +%Y%m%d%H%M)"
echo "::set-env name=TAG_NAME::$(date +%Y%m%d%H%M)"
- name: Release dat files
uses: Ricky-Hao/action-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ASSET_PATH: publish
- name: Upload dat files
uses: actions/upload-artifact@master
if: success()
with:
name: dat_files
path: publish
-21
View File
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2019 Loyalsoldier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-110
View File
@@ -1,110 +0,0 @@
# 简介
**v2ray** 加强版规则文件,可代替 v2ray 官方 `geoip.dat` 和 `geosite.dat` 文件。利用 GitHub Actions 每天自动构建,保证最新。
## 规则文件生成方式
### geoip.dat
- 通过仓库 [@v2ray/geoip](https://github.com/v2ray/geoip) 生成
- 其中 IP 地址来源于 [MaxMind 免费 IP](https://dev.maxmind.com/geoip/geoip2/geolite2/)
- **优点**:由于项目每天自动构建,所以更新速度比官方 `geoip.dat` 要快得多
### geosite.dat
- 通过仓库 [@v2ray/domain-list-community](https://github.com/v2ray/domain-list-community) 生成
- **优点**:由于项目每天自动构建,所以更新速度比官方 `geosite.dat` 要快得多
- **加入大量中国大陆域名**:通过仓库 [@felixonmars/dnsmasq-china-list](https://github.com/felixonmars/dnsmasq-china-list) 生成 `chinalist` 类别域名并加入到 `geosite:cn` 类别中
- **加入最新 GFWList**:通过仓库 [@cokebar/gfwlist2dnsmasq](https://github.com/cokebar/gfwlist2dnsmasq) 生成 `gfwlist` 类别域名并加入到 `geosite:geolocation-!cn` 类别中
## 使用方式
1. [点击进入规则文件发布页面](https://github.com/Loyalsoldier/v2ray-rules-dat/releases),点击下载位于最上方的 `geoip.dat` 和 `geosite.dat`
2. 把下载下来的 `geoip.dat` 和 `geosite.dat` 文件放入到 v2ray 软件的规则文件目录,替换掉原来的 `geoip.dat` 和 `geosite.dat`
3. 修改 v2ray 配置文件。配置参考下面👇
### geoip.dat
跟 v2ray 官方 `geoip.dat` 配置方式相同。
Routing 配置方式:
```json
{
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "Direct",
"ip": [
"geoip:cn",
"geoip:private"
]
}
]
}
}
```
### geosite.dat
跟 v2ray 官方 `geosite.dat` 配置方式相同。
Routing 配置方式:
```json
{
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "Reject",
"domain": [
"geosite:category-ads-all"
]
},
{
"type": "field",
"outboundTag": "Proxy",
"domain": [
"geosite:geolocation-!cn"
]
},
{
"type": "field",
"outboundTag": "Direct",
"domain": [
"geosite:cn"
]
}
]
}
}
```
DNS 配置方式:
```json
{
"dns": {
"servers": [
{
"address": "1.1.1.1",
"port": 53,
"domains": [
"geosite:geolocation-!cn"
]
},
{
"address": "114.114.114.114",
"port": 53,
"domains": [
"geosite:cn"
]
},
"8.8.8.8",
"223.5.5.5"
]
}
}
```
+52
View File
@@ -0,0 +1,52 @@
103.com
123cha.com
95081.com
airasia.com
baid.us
baidu.jp
bussou.com
busytrade.com
cnbeta.com
cnbetacdn.com
cnpolitics.org
dm530.net
duanzhihu.com
dysfz.cc
emacs-china.org
galaxymacau.com
galstars.net
haitum.com
hostloc.com
itiger.com
jiaoyou8.com
kh.google.com
kox.moe
laonanren.com
longbridgeapp.com
longbridgehk.com
lovart.ai
mox.moe
mypikpak.com
mypikpak.net
mysinablog.com
naixi.net
nikke-de.com
nikke-en.com
nikke-fr.com
nikke-global.com
nikke-jp.com
nikke-kr.com
nikke-sea.com
ntrqq.com
nytlog.com
shuangtv.net
suppig.net
top
us.ci
ustclug.org
vol.moe
xclient.info
xjp.cc
yanghengjun.com
ydy.com
yslang.com
View File
+67
View File
@@ -0,0 +1,67 @@
#!/usr/bin/env python3
import sys
print(sys.argv[1], sys.argv[2])
''' Find redundant items in domain lists.
e.g. 'bar.foo.com' is redundant for 'foo.com'.
'''
def load(list):
''' Parse conf file & Prepare data structure
Returns: [ ['abc', 'com'],
['bar', 'foo', 'com'],
... ]
'''
results = []
with open(list, 'r') as f:
for line in f.readlines():
line = line.strip()
if line == '' or line.startswith('#'):
continue
# A domain name is case-insensitive and
# consists of several labels, separated by a full stop
domain_labels = line.lower().split('.')
results.append(domain_labels)
# Sort results by domain labels' length
results.sort(key=len)
return results
def find(labelses, removedDomainFile):
''' Find redundant items by a tree of top-level domain label to sub-level.
`tree` is like { 'com': { 'foo: { 'bar': LEAF },
'abc': LEAF },
'org': ... }
'''
tree = {}
LEAF = 1
for labels in labelses:
domain = '.'.join(labels)
# Init root node as current node
node = tree
while len(labels) > 0:
label = labels.pop()
if label in node:
# If child node is a LEAF node,
# current domain must be an existed domain or a subdomain of an existed.
if node[label] == LEAF:
print(f"Redundant found: {domain} at {'.'.join(labels)}")
with open(removedDomainFile, "a") as f:
f.write(domain)
f.write("\n")
break
else:
# Create a leaf node if current label is last one
if len(labels) == 0:
node[label] = LEAF
# Create a branch node
else:
node[label] = {}
# Iterate to child node
node = node[label]
if __name__ == '__main__':
find(load(sys.argv[1]), sys.argv[2])
+4
View File
@@ -0,0 +1,4 @@
ifanr.com
weibo.com
weixinbridge.com
www.baidu.com
+2
View File
@@ -0,0 +1,2 @@
services.googleapis.cn
supertop.co
+37
View File
@@ -0,0 +1,37 @@
4paradigm.com
addthis.com
addthisedge.com
alimama.alicdn.com
alimama.com
analytics.google.com
app.chat.xiaomi.net
bdtj.tagtic.cn
busuanzi.ibruce.info
cdn.onesignal.com
click.discord.com
click.redditmail.com
ctrip.com
d.ifengimg.com
erebor.douban.com
fabric.io
icons.mydrivers.com
img.alibaba.com
jav321.com
knet.cn
mail.tsinghua.edu.cn
mtalk.google.com
mx.technolutions.net
offer.alibaba.com
pingjs.qq.com
qlogo.cn
resolver.msg.xiaomi.net
s.youtube.com
sf3-ttcdn-tos.pstatp.com
t.co
tagtic.cn
telegra.ph
tongji.baidu.com
tv.sohu.com
ue.yeyoucdn.com
umeng.com
wl.spotify.com
+8
View File
@@ -0,0 +1,8 @@
adsurge.com
applvn.com
cookiebot.com
iads.unitychina.cn
remerge.io
singular.net
usercentrics.com
usercentrics.eu