j-moriarti/pDNSf-Hosts-collection

GitHub: j-moriarti/pDNSf-Hosts-collection

一个经过深度清洗和优化的超大规模域名黑名单集合,专为PersonalDNSfilter设计,用于DNS层级拦截广告、追踪和各类恶意域名。

Stars: 30 | Forks: 6

##### 在本 Repo 中,我创建了一个 shell 脚本,用于自动化从各种来源收集和编译所有 Hosts 的过程,然后进行清理和优化,以便在 ["PersonalDNSfilter"](https://www.zenz-solutions.de/personaldnsfilter/) 中使用。 ##### 此集合适用于拦截包含广告、跟踪、恶意软件、网络钓鱼、勒索软件、间谍软件、木马和病毒的域名(适用于 PC 和智能手机)。 #### ℹ️ 更新与新闻 📢

``` 2021/07/27 📌 Added support for converting sources from [AdBlockPlus/uBlock/AdGuard] format to Domains/Hosts format! 📌 Added many new sources! 📌 Improved the code to reduce false positives. ```

点击查看过往变更!

``` 2021/07/18 📌 Improved checking TLDs of domains + fixes 📌 Implemented "idna to dns (utf8)" converting function for domains and TLDs. 📌 Optimized the code speed. 📌 Added support for checking more TLDs (IANA / Blockchain-registered / OpenNIC / FurNIC / Emercoin / New Nations / Onion). 2021/07/10 📌 Implemented personal Allow-List for falsely blocked domains. 2021/07/03 📌 Implemented parallel downloading of sources.(disabled by default due to github limitations) 📌 Separated the sources list from code. 2021/03/18 📌 Improved removing redundant subdomains! (thanks @badmojr for reporting 😉) 2021/03/15 📌 Implemented removing redundant subdomains! 📌 Greatly reduced blocklist size without affecting the quality!(same blocking power) 📌 The original blocklist (without whitelisting / subdomains removing) is also available in Section "B: (Manual Method)" 2021/03/13 📌 Implemented Whitelisting: For now I apply mkb2091's whitelist source! 📌 Also, the original Hosts is preserved, too (without applying whitelists)↩️ You can find it in Section "B: (Manual Method)" 📌 To get statistics about the (input) sources used in this Repo, check 'stats' file. 📌 The previous Hosts releases and backups of the input sources (in compressed format)↩️ can be found in 'Releases' page, under tha tag 'v1.0.0-backup'. ```



### ⚠️ 免责声明:
点击展开! 本 Repository 中使用的 Hosts 来源拥有其各自的许可证。本 Repo 中使用的 HOSTS 来源链接(包含其各自的许可证)可以在这里找到:["sources.conf"](https://github.com/j-moriarti/pDNSf-Hosts-collection/blob/master/sources.conf)。本 Repo 中编译的 hosts 仅供我个人使用。我不对他人滥用这些文件的行为承担任何责任。 ###### ⚠️请注意,您已被告知⚠️ :wink:
#### ℹ️ 说明:
点击展开! 此 hosts 文件专为 ["PersonalDNSfilter"](https://www.zenz-solutions.de/personaldnsfilter/) app 优化。这款 [开源](https://github.com/IngoZenz/personaldnsfilter) app 可以处理海量的域名,且不影响电池或 RAM 使用!因此,将这些 hosts 添加到其中不会有任何问题! ###### !!! 此 HOSTS 文件体积极大,只有 pDNSf 能轻松处理它 !!! ###### !!! 尽管已应用白名单以移除错误拦截的域名,但仍有可能出现误报 (FALSE-POSITIVE) 或非预期拦截 !!! ###### !!! 请准备好在 pDNSf 中手动添加白名单 !!! ###### !!!再次警告您!!!


#### ℹ️ Hosts 信息

``` [Original Blocklist] Blocked Domains: 4,876,444 Blocklist size: 108.0 MB [Optimized Blocklist 🚀] Blocked Domains: 2,989,557 Blocklist size: 55.7 MB Number of Blocked IPs: 238,395 IP Blocklist size: 3.3 MB Auto Updates: Every 24 hours ```



### A: (设置后不理法 / Set & Forget Method) ### 分部分下载 Hosts (仅域名格式 / Domains-only Format) (直接将这些链接添加到 pDNSf 配置中) (此外,您也可以添加 IP 黑名单。(链接可在下方的“额外 Hosts”表格中找到)) | 名称 | 下载链接 | 镜像链接 | 大小 | |:----:|:-------:|:-------:|:-------:| | pDNSf-hosts-part0.txt | [域名 (Part 0)](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/pDNSf-hosts-part0.txt) | [镜像 (Part 0)](https://www.dl.dropboxusercontent.com/s/9jpe80edva776ei/pDNSf-hosts-part0.txt?dl=1) | 18.6 MB | | pDNSf-hosts-part1.txt | [域名 (Part 1)](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/pDNSf-hosts-part1.txt) | [镜像 (Part 1)](https://www.dl.dropboxusercontent.com/s/d1x9nrjn8wmdgkn/pDNSf-hosts-part1.txt?dl=1) | 18.6 MB | | pDNSf-hosts-part2.txt | [域名 (Part 2)](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/pDNSf-hosts-part2.txt) | [镜像 (Part 2)](https://www.dl.dropboxusercontent.com/s/500rbwazmyotd5c/pDNSf-hosts-part2.txt?dl=1) | 18.6 MB |

### B: (手动方法 / Manual Method) ### 下载 GZip 压缩的 Hosts (仅域名格式 / Domains-only Format) (首先,下载 'pDNSf-hosts.txt.gz' 并将其解压到某处,然后将 'pDNSf-hosts.txt' 的本地路径添加到 pDNSf 配置中) | 名称 | 下载链接 | 镜像链接 | 大小 | |:----:|:-------:|:-------:|:-------:| | pDNSf-hosts.txt.gz | [下载](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/pDNSf-hosts.txt.gz) | [镜像](https://www.dl.dropboxusercontent.com/s/0qkl500uldf0ryo/pDNSf-hosts.txt.gz) | 17.3 MB | | pDNSf-hosts_no-whitelist.txt.gz | [下载](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/pDNSf-hosts_no-whitelist.txt.gz) | [镜像](https://www.dl.dropboxusercontent.com/s/b1dzuemxspu7j73/pDNSf-hosts_no-whitelist.txt.gz?dl=1) | 28.1 MB | ℹ️ 说明:
点击展开!

``` 📌 Example of a LOCAL PATH format in pDNSf: PC version: file:///D:/Downloads folder/pDNSf-hosts.txt Mobile version: file:///sdcard/Downloads/pDNSf-hosts.txt 📌 Use "pDNSf-hosts_no-whitelist.txt.gz" if you want to use the Hosts without applying "whitelists" or "redundant subdomains removing". ```



### 下载额外 Hosts (仅 IP 和仅域名格式) | 名称 | 下载链接 | 镜像链接 | 大小 | 行数 | |:---------:|:-------:|:--------:|:-------:|:-------:| | CIDR-IPs 黑名单 | [下载](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/CIDR-IPs.txt) | [镜像](https://www.dl.dropboxusercontent.com/s/ef6ya9o2wf0rqy0/CIDR-IPs.txt?dl=1) | 91.9 KB | 5,865 | | 通配符黑名单 | [下载](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/Wildcards.txt) | [镜像](https://www.dl.dropboxusercontent.com/s/v1hdmolkekzevhl/Wildcards.txt) | 16.4 KB | 831 | | IP 地址黑名单 | [下载](https://github.com/j-moriarti/pDNSf-Hosts-collection/releases/download/v1.0.0/just-IPs.txt) | [镜像](https://www.dl.dropboxusercontent.com/s/r7685b8ahxhro2d/just-IPs.txt?dl=1) | 3.3 MB | 238,395 |
标签:Android工具, Cutter, DNS过滤, Hosts文件, pDNSf, Shell脚本, 勒索软件防护, 去重优化, 反追踪, 反钓鱼, 域名黑名单, 广告拦截, 恶意软件防护, 白名单机制, 网络威胁情报, 网络安全, 网络安全, 自动化编译, 隐私保护, 隐私保护