├── .gitattributes ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE └── config.yml ├── .gitignore ├── LICENSE ├── README.md └── hosts-files ├── dnscrypt-proxy-cloaking-no-sni-rst.txt ├── dnscrypt-proxy-cloaking.txt ├── dnsmasq-no-sni-rst.conf ├── dnsmasq.conf ├── hosts ├── hosts-compact ├── hosts-compact-no-sni-rst ├── hosts-no-sni-rst ├── hosts-no-sni-rst.rsc ├── hosts.rsc ├── surge-no-sni-rst.conf └── surge.conf /.gitattributes: -------------------------------------------------------------------------------- 1 | *.rsc linguist-vendored 2 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # 报告问题 Reporting issues 2 | 您可以通过GitHub的[issue](https://github.com/googlehosts/hosts/issues)向我们报告问题。 3 | You can report issues via GitHub's [issue](https://github.com/googlehosts/hosts/issues). 4 | 5 | 请遵守下列事项: 6 | Make sure you are following the rules below: 7 | 8 | - 只能使用中文或英文。 9 | Only Chinese or English is allowed here. 10 | 11 | - 禁止一切广告、政治敏感或攻击性言论。 12 | No promotions, political-sensitive or offensive contents. 13 | 14 | - 除非您有合适的理由,否则请勿破坏issue预设的模板。 15 | We have a issue template, but non-Chinese speakers are not required to follow it at the moment. 16 | 17 | - 禁止重复issue:具体来说,如果您想让我们向hosts内新增一个网站,请先搜索是否有相似的issue(无论状态),如果有,您就不应当再开一个issue了。对于其他情况,如果存在相似issue,且这个issue为“打开”(open)状态,您也不应当再开一个issue。如果您的issue被关闭,重新引起我们的注意的正确方式是在原issue下留言,而不是再开一个新的issue。 18 | No duplicate issues: Make sure you searched for similar issue before continuing. Specifically, for HOSTS additions, you shouldn't open a new issue if a similar issue is found (status is irrelevant); for other situations, you can only open a new issue if no similar issue with open status is found. If your previous issue was closed by us, you should comment to the original issue instead of opening a new one to regain our attention on the same topic. 19 | 20 | - 禁止短时间内大量刷屏:无论您发送的内容是什么,您都不应该在短时间内大量回复同一个issue;如果您想补充内容,请善用编辑功能。 21 | No double posting: You shouldn't double post in the same issue in a short period, no matter what your comment is about. Use EDIT instead. 22 | 23 | - 如果您只是想“顶楼上”,请使用reaction功能(即消息框右上角的笑脸符号,移动版页面不可见)。 24 | If you comment just for "+1", use REACTION instead (the smile face on top-right of the comment box; invisible on mobile view). 25 | 26 | - 如果您的issue中含有大量hosts条目/代码/日志等内容,请使用 ` ``` ` 将这部分内容括起来。例如: 27 | If your issue contains multiple lines of HOSTS entries/codes/logs, use ` ``` ` to wrap it up. For example: 28 | 29 | ```` 30 | ``` 31 | 1.1.1.1 adc.com 32 | 1.1.1.2 zzz.adc.com 33 | ``` 34 | ```` 35 | 36 | # 贡献 Contributing 37 | 您可以通过GitHub的[issue](https://github.com/googlehosts/hosts/issues)或[pull request](https://github.com/googlehosts/hosts/pulls)向hosts中贡献条目。 38 | You can contribute to the HOSTS file via GitHub's [issue](https://github.com/googlehosts/hosts/issues) or [pull request](https://github.com/googlehosts/hosts/pulls). 39 | 40 | 如果您使用issue,请遵守上述事项。通过issue提交的内容将被视为匿名提交。 41 | If you choose issue, please follow the rules above. Contributions via this method will be considered anonymous. 42 | 43 | 如果您使用pull request,请留意以下内容: 44 | If you choose pull request, read the following: 45 | 46 | - 本项目不受理NSFW(换言之就是以成人内容为主,例如Pornhub)以及代理列表类网站。含有NSFW内容(且不能是主要内容),但有明确浏览限制的网站除外(例如Pixiv)。 47 | We do not accept any full-NSFW (Not Safe For Work, e.g. Pornhub) or proxy-list sites. Sites that contains NSFW contents (and not in the majority) with explicit viewing restrictions are exceptions (e.g. Pixiv). 48 | 49 | - 您只能提交更改至[hosts-source](https://github.com/googlehosts/hosts/tree/hosts-source)分支。 50 | You can only commit your changes against the [hosts-source](https://github.com/googlehosts/hosts/tree/hosts-source) branch. 51 | 52 | - 默认情况下,我们将以rebase方式进行合并。如果您需要以其他方式进行合并,请在pull request中声明。 53 | By default we will use rebase merging. If you prefer other ways of merging, please declare it in your pull request. 54 | 55 | - 为了您的安全,我们建议您以 `beyondgfw ` 的身份提交: 56 | For your safety, it is suggested to use `beyondgfw ` as the identity of your commit: 57 | ``` 58 | git config user.name beyondgfw 59 | git config user.email beyond.gfw.limit@gmail.com 60 | ``` 61 | 62 | - 请注意遵守格式,并尽可能按字母顺序排列。 63 | Follow the format (and also in alphabetical order if possible). 64 | 65 | - 请避免将同一个IP用于多个不同的域名上。参见[issue #48](https://github.com/googlehosts/hosts/issues/48)。 66 | Avoid using same IP for multiple domains. See [issue #48](https://github.com/googlehosts/hosts/issues/48) for details. 67 | 68 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE: -------------------------------------------------------------------------------- 1 | 16 | ### 是什么网站 / app 出现了问题? 17 | 18 | 25 | - [ ] 我确认这不是一个 NSFW 网站 26 | 33 | ### 是完全无法使用,还是部分无法使用? 34 | - [ ] 完全无法使用: 35 | 36 | - [ ] 部分无法使用: 37 | 38 | 43 | ### 您的运营商是? 44 | 45 | 55 | ### 加载失败的资源地址 56 | 57 | 62 | ### 失效域名的 DNS 解析结果 63 | 64 | 67 | ### 封锁方式 68 | - [ ] DNS 污染 69 | - [ ] IP 封锁 70 | - [ ] IP reset 71 | - [ ] SNI reset 72 | - [ ] 涉及到第三方服务: 73 | 74 | 90 | ### 可用的 hosts 91 | ``` 92 | # 请将 hosts 内容粘贴在此行下方 93 | 94 | # 请将 hosts 内容粘贴在此行上方 95 | ``` 96 | -------------------------------------------------------------------------------- /.github/config.yml: -------------------------------------------------------------------------------- 1 | newPRWelcomeComment: | 2 | Thanks for your contribution! 3 | **SAFETY NOTE:** Please consider submit your changes as `beyondgfw `. We strongly recommend you to do so for your anonymity. 4 | Also, if you are contributing to the HOSTS file: 5 | - Make sure your pull request's base branch is `hosts-source`. 6 | - Per #48 please make sure you are not using one single IP for multiple domains whenever possible. 7 | Other requirements are listed on the [CONTRIBUTING](https://github.com/googlehosts/hosts/blob/master/.github/CONTRIBUTING.md#%E8%B4%A1%E7%8C%AE-contributing) page. 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | output/ 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016-2020 googlehosts members 2 | 3 | 前言 4 | 1.每个人都可以逐字复制并且分发此协议,但不允许更改任何内容. 5 | 2.请使用Hosts license的项目在hosts文件抬头注明版权,仅以下格式有效: 6 | Copyright (C) Time Author 7 | 8 | 本协议的起草参考了GPL v2.0开源协议的格式,但是我们注重的是对hosts文件的保护 9 | 10 | 复制,修改,分发的条件和条款 11 | 1.禁止修改原作者信息以及协议声明 12 | 2.禁止修改hosts文件中的格式,例如: 13 | ①一个域名对应一个IP(单域名解析) 14 | 1.1.1.1 adc.com 15 | 1.1.1.2 zzz.adc.com 16 | ②一个IP对应多个域名(泛解析) 17 | 1.1.1.1 abc.com 18 | 1.1.1.1 zzz.abc.com 19 | 只要符合以上例子中任何一种或者作者自行声明,皆不可修改 20 | 3.禁止将hosts文件用于任何商业行为,包括但不限于捐赠,广告,直接收费 21 | 4.您必须在相同平台fork原项目后才能进行再发行,并且不允许转移至其他平台 22 | 23 | 免责声明 24 | 1.由于服务器单方面问题造成的损失,hosts作者不负法律责任 25 | 2.如果使用反向代理服务器、端口转发服务器或者任何非官方服务器,请作者提前声明并且同免责声明1 26 | 3.fork原项目后修改的内容,原项目不负责任 27 | 28 | 最终解释权由Hosts license编写组所有 29 | 30 | And wait, the most important, you shall star/+1/like the project(s) in project url 31 | section above first, and then thank the author(s) in Copyright section. 32 | 33 | Here are some suggested ways: 34 | 35 | - Email the authors a thank-you letter, and make friends with him/her/them. 36 | - Report bugs or issues. 37 | - Tell friends what a wonderful project this is. 38 | - And, sure, you can just express thanks in your mind without telling the world. 39 | 40 | Contributors of this project by forking have the option to add his/her name and 41 | forked project url at copyright and project url sections, but shall not delete 42 | or modify anything else in these two sections. 43 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GoogleHosts 2 | ## 本项目已放弃曾用域名googlehosts.org,请小心他人将域名用于制作钓鱼网站。 3 | [![doodle]][doodle-story] 4 | 5 | [doodle]: https://www.google.com/logos/doodles/2019/spring-equinox-2019-northern-hemisphere-5139135894388736-2x.png 6 | [doodle-story]: https://www.google.com/doodles/spring-2019-northern-hemisphere 7 | 8 | | [Telegram群][telegram-group-link] | [Telegram通知频道][telegram-channel-link] | [hosts自动生成][travis-link] | hosts镜像 | 9 | | :---: | :---: | :---: | :---: | 10 | | [![telegram-badge]][telegram-group-link] | [![telegram-badge]][telegram-channel-link] | [![travis-badge]][travis-link] | [![mirror-badge-coding]][mirror-link-coding][![mirror-badge-qvqnetwork]][mirror-link-qvqnetwork] | 11 | 12 | [telegram-badge]: https://img.shields.io/badge/GoogleHosts-Telegram-brightgreen.svg?style=flat-square 13 | [telegram-group-link]: https://t.me/googlehosts 14 | [telegram-channel-link]: https://t.me/googlehostsnews 15 | [travis-badge]: https://img.shields.io/travis/googlehosts/hosts/hosts-source.svg?style=flat-square 16 | [travis-link]: https://travis-ci.org/googlehosts/hosts 17 | [mirror-badge-coding]: https://cloud.githubusercontent.com/assets/7419875/21286217/c6642eb2-c488-11e6-94b1-8ad01d31ac9d.png 18 | [mirror-badge-qvqnetwork]: https://user-images.githubusercontent.com/30754849/74812238-0ecae380-532e-11ea-84a7-9f6e347b73ee.png 19 | [mirror-link-coding]: https://scaffrey.coding.net/p/hosts/git 20 | [mirror-link-qvqnetwork]: https://git.qvq.network/googlehosts/hosts 21 | 22 | 我们立足于美利坚合众国,对全球华人服务,受北美法律保护。版权所有,未经授权禁止复制或建立镜像。 23 | 24 | ## 如何贡献 25 | 26 | `hosts`等文件是由程序自动生成的,如要改变其内容,请修改`hosts-source`分支下的`hosts.yml`,具体说明见该分支下的`README`。 27 | 28 | ## 使用条款 29 | 30 | - 本项目的hosts,README,wiki等资源基于一个[修改版的Hosts license协议](LICENSE)发布(主要增加了SATA协议),这意味着你可以拷贝、再发行本项目的内容, 但是你将必须: 31 | - 使用**完全相同**的条款和格式发布。 32 | - 提供原作者信息以及协议声明。 33 | - 同时你也**不能将本项目用于商业用途**,**任何盈利活动都属于商业用途**。 34 | - 当你使用了使用SATA的开源软件或文档的时候,在遵守MIT许可证的前提下,你应该马不停蹄地给你所使用的开源项目“点个赞”,比如GitHub上的star,然后你应该感谢这个帮助了你的开源项目的作者,作者信息可以在许可证头部的版权声明部分找到。 35 | 36 | - 本项目的所有代码除另有说明外,均基于MIT License发布,具体请看`hosts-source`分支下的[LICENSE](https://github.com/googlehosts/hosts/blob/hosts-source/LICENSE)。 37 | 38 | - 此处的文字仅用于说明,条款以LICENSE文件中的内容为准。 39 | 40 | - 请在遵守当地相关法律法规的前提下使用本项目,由此产生的问题我们不负任何责任。 41 | --------------------------------------------------------------------------------