Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Clash Rules | 11,791 | a day ago | gpl-3.0 | |||||||
🦄️ 🎃 👻 Clash Premium 规则集(RULE-SET),兼容 ClashX Pro、Clash for Windows 客户端。 | ||||||||||
V2ray Rules Dat | 11,725 | a day ago | 2 | gpl-3.0 | ||||||
🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, compatible with Xray-core, Shadowsocks-windows, Trojan-Go and leaf. | ||||||||||
Domain List Community | 3,144 | 19 hours ago | 97 | April 24, 2021 | 14 | mit | Go | |||
Community managed domain list. Generate geosite.dat for V2Ray. | ||||||||||
Geoip | 2,292 | a day ago | 2 | cc-by-sa-4.0 | Go | |||||
🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Trojan-Go, Clash and Leaf, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more. | ||||||||||
Surge Rules | 1,279 | a day ago | gpl-3.0 | |||||||
🦄 🎃 👻 Surge 规则集(DOMAIN-SET 和 RULE-SET),兼容 Surge for iOS 和 Surge for Mac 客户端。 | ||||||||||
Domain List Custom | 138 | 10 days ago | mit | Go | ||||||
🦄 🎃 👻 V2Ray 路由规则文件自定义版,可代替官方 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go 和 leaf。Customized edition of geosite.dat for V2Ray, Xray-core, Shadowsocks-windows, Trojan-Go and leaf, based on data directory in https://github.com/v2fly/domain-list-community | ||||||||||
Cn Blocked Domain | 35 | 2 years ago | mit | Go | ||||||
⛔️ 🚫 ⚠️ 从 Greatfire Analyzer 爬取的在中国大陆被屏蔽的域名列表。Domains blocked in China mainland crawled from Greatfire Analyzer. | ||||||||||
Iran V2ray Rules | 23 | a day ago | gpl-3.0 | |||||||
Enhanced v2ray/xray and v2ray/xray-clients routing rules with built-in Iranian domains and a focus on security and adblocking. | ||||||||||
Sing Box Install | 21 | 9 days ago | gpl-3.0 | Shell | ||||||
Easiest way to install & upgrade sing-box. | ||||||||||
Geosite | 9 | a year ago | mit | Go | ||||||
For V2Ray Routing |
This project manages a list of domains, to be used as geosites for routing purpose in Project V.
This project is not opinionated. In other words, it does NOT endorse, claim or imply that a domain should be blocked or proxied. It can be used to generate routing rules on demand.
Each file in the data
directory can be used as a rule in this format: geosite:filename
.
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"outboundTag": "Reject",
"domain": [
"geosite:category-ads-all",
"geosite:category-porn"
]
},
{
"type": "field",
"outboundTag": "Direct",
"domain": [
"domain:icloud.com",
"domain:icloud-content.com",
"domain:cdn-apple.com",
"geosite:cn",
"geosite:private"
]
},
{
"type": "field",
"outboundTag": "Proxy-1",
"domain": [
"geosite:category-anticensorship",
"geosite:category-media",
"geosite:category-vpnservices"
]
},
{
"type": "field",
"outboundTag": "Proxy-2",
"domain": [
"geosite:category-dev"
]
},
{
"type": "field",
"outboundTag": "Proxy-3",
"domain": [
"geosite:geolocation-!cn"
]
}
]
}
dlc.dat
manuallygolang
and git
git clone https://github.com/v2fly/domain-list-community.git
cd domain-list-community
go mod download
dlc.dat
(without datapath
option means to use domain lists in data
directory of current working directory):
go run ./
go run ./ --datapath=/path/to/your/custom/data/directory
Run go run ./ --help
for more usage information.
All data are under data
directory. Each file in the directory represents a sub-list of domains, named by the file name. File content is in the following format.
# comments
include:another-file
domain:google.com @attr1 @attr2
keyword:google
regexp:www\.google\.com$
full:www.google.com
Syntax:
The following types of rules are NOT fully compatible with the ones that defined by user in V2Ray config file. Do Not copy and paste directly.
#
. It may begin anywhere in the file. The content in the line after #
is treated as comment and ignored in production.include:
, followed by the file name of an existing file in the same directory.domain:
, followed by a valid domain name. The prefix domain:
may be omitted.keyword:
, followed by a string.regexp:
, followed by a valid regular expression (per Golang's standard).full:
, followed by a complete and valid domain name.domain
, keyword
, regexp
and full
) may have one or more attributes. Each attribute begins with @
and followed by the name of the attribute.The entire data
directory will be built into an external geosite
file for Project V. Each file in the directory represents a section in the generated file.
To generate a section:
include:
lines with the actual content of the file.domain:
line into a sub-domain routing rule.keyword:
line into a plain domain routing rule.regexp:
line into a regex domain routing rule.full:
line into a full domain routing rule.Theoretically any string can be used as the name, as long as it is a valid file name. In practice, we prefer names for determinic group of domains, such as the owner (usually a company name) of the domains, e.g., "google", "netflix". Names with unclear scope are generally unrecommended, such as "evil", or "local".
Attribute is useful for sub-group of domains, especially for filtering purpose. For example, the list of google
domains may contains its main domains, as well as domains that serve ads. The ads domains may be marked by attribute @ads
, and can be used as geosite:google@ads
in V2Ray routing.