Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问:如何增加个人需要的网站域名? #16

Open
sastation opened this issue Mar 24, 2020 · 19 comments
Open

请问:如何增加个人需要的网站域名? #16

sastation opened this issue Mar 24, 2020 · 19 comments

Comments

@sastation
Copy link

请问:如何增加个人需要的网站域名?

@Loyalsoldier
Copy link
Owner

Loyalsoldier commented Mar 24, 2020

可以往 https://github.com/v2fly/domain-list-community 这个项目提交 Pull Request,也可以自己 Fork 本项目,在 hidden 分支的 direct.txtproxy.txtreject.txt 文件内增加域名

@mclovin-2k
Copy link

可以往 https://github.com/v2fly/domain-list-community 这个项目提交 Pull Request,也可以自己 Fork 本项目,在 hidden 分支的 direct.txtproxy.txtreject.txt 文件内增加域名

我 Fork 了本项目,地址:https://github.com/mclovin-2k/v2ray-rules-dat/
然后向 “direct-need-to-remove.txt” 文件中增加了几个域名。
但是 Action 执行完后,出来的 "direct-list.txt" 里面,依然有这些域名。

@Loyalsoldier
Copy link
Owner

可以往 https://github.com/v2fly/domain-list-community 这个项目提交 Pull Request,也可以自己 Fork 本项目,在 hidden 分支的 direct.txtproxy.txtreject.txt 文件内增加域名

我 Fork 了本项目,地址:https://github.com/mclovin-2k/v2ray-rules-dat/
然后向 “direct-need-to-remove.txt” 文件中增加了几个域名。
但是 Action 执行完后,出来的 "direct-list.txt" 里面,依然有这些域名。

需要将 need-to-remove.txt 文件内容按字典序排序。另外,假设在直连列表中,你要移除 www.baidu.com,必须在 need-to-remove.txt 文件内添加 www.baidu.com,而不是 baidu.com

@mclovin-2k
Copy link

可以往 https://github.com/v2fly/domain-list-community 这个项目提交 Pull Request,也可以自己 Fork 本项目,在 hidden 分支的 direct.txtproxy.txtreject.txt 文件内增加域名

我 Fork 了本项目,地址:https://github.com/mclovin-2k/v2ray-rules-dat/
然后向 “direct-need-to-remove.txt” 文件中增加了几个域名。
但是 Action 执行完后,出来的 "direct-list.txt" 里面,依然有这些域名。

需要将 need-to-remove.txt 文件内容按字典序排序。另外,假设在直连列表中,你要移除 www.baidu.com,必须在 need-to-remove.txt 文件内添加 www.baidu.com,而不是 baidu.com

OK 了。
不过按字典序排序这个限制确实有点不方便就是了。

@haomuch
Copy link

haomuch commented Feb 1, 2021

建议将hidden分支proxy.txt域名加入到geosite:gfwlist或者greatfire规则,而非更大的geolocation-!cn规则,这样比较方便使用黑名单模式的用户。
另外也想咨询一下,master分支的proxy-list.txt对应的到底是哪一个规则呢?geolocation-!cn规则包含了更多国外未屏蔽网站,应该比proxy-list.txt大得多吧?

@Loyalsoldier
Copy link
Owner

Loyalsoldier commented Feb 1, 2021

另外也想咨询一下,master分支的proxy-list.txt对应的到底是哪一个规则呢?

proxy-list.txt 就是 geolocation-!cn 类别的输出。

@haomuch
Copy link

haomuch commented Feb 1, 2021

另外也想咨询一下,master分支的proxy-list.txt对应的到底是哪一个规则呢?

proxy-list.txt 就是 geolocation-!cn 类别的输出。

所以 geolocation-!cn类别仅包括了geosite:gfwlistgeosite:greatfiregeosite:apple-cngeosite:google-cn四个类别的所有域名吗?那其实也挺适合直接用来作为黑名单模式规则

@Loyalsoldier
Copy link
Owner

所以 geolocation-!cn类别仅包括了geosite:gfwlistgeosite:greatfiregeosite:apple-cngeosite:google-cn四个类别的所有域名吗?那其实也挺适合直接用来作为黑名单模式规则

README 里提到的都是比 v2fly/domain-list-community 仓库新增的内容(只增无减)

@haomuch
Copy link

haomuch commented Feb 1, 2021

所以 geolocation-!cn类别仅包括了geosite:gfwlistgeosite:greatfiregeosite:apple-cngeosite:google-cn四个类别的所有域名吗?那其实也挺适合直接用来作为黑名单模式规则

README 里提到的都是比 v2fly/domain-list-community 仓库新增的内容(只增无减)

我在尝试通过need-to-remove将 geolocation-!cn中超出geosite:gfwlistgeosite:greatfire的域名剔除,但是在Excel统计发现 geolocation-!cn总条数仅多出geosite:gfwlistgeosite:greatfire2968条,但是geolocation-!cn列表中超出geosite:gfwlistgeosite:greatfire列表的域名多达8673条,这不是说明geosite:gfwlistgeosite:greatfire没有被完全包含进geolocation-!cn吗?

@Loyalsoldier
Copy link
Owner

我在尝试通过need-to-remove将 geolocation-!cn中超出geosite:gfwlistgeosite:greatfire的域名剔除,但是在Excel统计发现 geolocation-!cn总条数仅多出geosite:gfwlistgeosite:greatfire2968条,但是geolocation-!cn列表中超出geosite:gfwlistgeosite:greatfire列表的域名多达8673条,这不是说明geosite:gfwlistgeosite:greatfire没有被完全包含进geolocation-!cn吗?

顶级域名包含了,所以部分域名被去重了。

@haomuch
Copy link

haomuch commented Feb 1, 2021

我在尝试通过need-to-remove将 geolocation-!cn中超出geosite:gfwlistgeosite:greatfire的域名剔除,但是在Excel统计发现 geolocation-!cn总条数仅多出geosite:gfwlistgeosite:greatfire2968条,但是geolocation-!cn列表中超出geosite:gfwlistgeosite:greatfire列表的域名多达8673条,这不是说明geosite:gfwlistgeosite:greatfire没有被完全包含进geolocation-!cn吗?

顶级域名包含了,所以部分域名被去重了。

geosite:greatfire包含了tesla.cn,geolocation-!cn只有tesla.com,这两个不是包含关系吧?

@Loyalsoldier
Copy link
Owner

Loyalsoldier commented Feb 2, 2021

geosite:greatfire包含了tesla.cn,geolocation-!cn只有tesla.com,这两个不是包含关系吧?

geolocation-!cn 剔除了 .cn 的域名(上面说的「只增不减」是不严谨的)。

Repository owner deleted a comment from haomuch Feb 5, 2021
@sastation
Copy link
Author

说清楚了

@Loyalsoldier Loyalsoldier reopened this Feb 23, 2021
@jamesdengtm
Copy link

很多网址还是需要自己添加到v2rayn路由规则里才走代理

@haomuch
Copy link

haomuch commented Nov 17, 2021

另外也想咨询一下,master分支的proxy-list.txt对应的到底是哪一个规则呢?

proxy-list.txt 就是 geolocation-!cn 类别的输出。

仍然建议将hidden分支中proxy.txt网址加入到geosite:gfw或者一个单独的geosite:proxy类别,因为更大的geolocation类别里包含了太多国外没有被屏蔽的网址,不适合用来做黑名单模式规则。

Repository owner deleted a comment from yanghonghao6789 May 10, 2023
@chise0713
Copy link

chise0713 commented Jul 19, 2023

@Loyalsoldier 假设我想高度自定义呢?例如将 r6s.game; r6.game; ubi.com加入 geosite:rinbow6sidge 与将csgo.com; cs.com; cs2.com加入 geosite:csgo 这样。
还是说自己编译数据库然后丢到 /usr/local/share/$type 好。
如果是后者比较推荐的话,自己编译数据库的话该如何编译和如何分组,有没有此类的教程,我看了v2fly和大佬您的源代码,实在是看不太懂。

@Loyalsoldier
Copy link
Owner

@KoinuDayo

把项目 https://github.com/v2fly/domain-list-community clone 下来,在 data 目录中新增文件,文件名即为 geosite 类别名,如 geosite:rinbow6sidge。在该新增文件中添加需要的域名,运行构建自己的 geosite.dat

或者 fork 本项目,在 hidden 分支的对应文件中添加域名。

@chise0713
Copy link

@KoinuDayo

把项目 https://github.com/v2fly/domain-list-community clone 下来,在 data 目录中新增文件,文件名即为 geosite 类别名,如 geosite:rinbow6sidge。在该新增文件中添加需要的域名,运行构建自己的 geosite.dat

或者 fork 本项目,在 hidden 分支的对应文件中添加域名。

感谢🙏

@chise0713

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants