In this Repo, I've created a shell script to automate the process of collecting and compiling all the Hosts from various sources, then cleaning and optimizing it to be used in "PersonalDNSfilter"
This collection is suitable for blocking the domains containing ads, tracking, malware, phishing, ransomware, spyware, trojans and virus (for PC and Smartphones).
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/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.
Expand to see previous changes!
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'.
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'.
Click to expand!
The Hosts sources that are used in this Repository, have their own Licenses. The links of the HOSTS sources that are used in this repo (which includes their own licenses) can be found here: "sources.conf". The compiled hosts in this Repo are meant for my personal usage only. I have no responsibility about others misusing of these files.
Click to expand!
This hosts file is specially optimized for "PersonalDNSfilter" app. This Open-Source app can handle Huge number of Domains without affecting on battery or ram usage! So there would be no problems adding these hosts to it!
[Original Blocklist]
Blocked Domains: 4,180,790
Blocklist size: 95.7 MB
[Optimized Blocklist 🚀]
Blocked Domains: 2,227,735
Blocklist size: 43.7 MB
Number of Blocked IPs: 254,985
IP Blocklist size: 3.5 MB
Auto Updates: Every 24 hours
[Original Blocklist]
Blocked Domains: 4,180,790
Blocklist size: 95.7 MB
[Optimized Blocklist 🚀]
Blocked Domains: 2,227,735
Blocklist size: 43.7 MB
Number of Blocked IPs: 254,985
IP Blocklist size: 3.5 MB
Auto Updates: Every 24 hours
(Add these links directly to pDNSf config)
(Additionally, you also can add IP blocklist.(links can be found at 'Extra Hosts' table below))
Name | Download Link | Mirror Link | Size |
---|---|---|---|
pDNSf-hosts-part0.txt | Domains (Part 0) | Mirror (Part 0) | 14.6 MB |
pDNSf-hosts-part1.txt | Domains (Part 1) | Mirror (Part 1) | 14.6 MB |
pDNSf-hosts-part2.txt | Domains (Part 2) | Mirror (Part 2) | 14.6 MB |
(First, download and extract (uncompress) 'pDNSf-hosts.txt.gz' to somewhere, then add the LOCAL PATH of 'pDNSf-hosts.txt' to pDNSf config)
Name | Download Link | Mirror Link | Size |
---|---|---|---|
pDNSf-hosts.txt.gz | Download | Mirror | 13.5 MB |
pDNSf-hosts_no-whitelist.txt.gz | Download | Mirror | 23.9 MB |
ℹ️ Notes:
Click to expand!
Name | Download Link | Mirror Link | Size | # of Lines |
---|---|---|---|---|
CIDR-IPs Block-List | Download | Mirror | 103.1 KB | 6,522 |
Wildcard Block-List | Download | Mirror | 8.2 KB | 444 |
IP Addresses Block-List | Download | Mirror | 3.5 MB | 254,985 |