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: 3,601,159
Blocklist size: 81.0 MB
[Optimized Blocklist π]
Blocked Domains: 1,744,689
Blocklist size: 31.9 MB
Number of Blocked IPs: 238,579
IP Blocklist size: 3.2 MB
Auto Updates: Every 24 hours
[Original Blocklist]
Blocked Domains: 3,601,159
Blocklist size: 81.0 MB
[Optimized Blocklist π]
Blocked Domains: 1,744,689
Blocklist size: 31.9 MB
Number of Blocked IPs: 238,579
IP Blocklist size: 3.2 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) | 10.6 MB |
pDNSf-hosts-part1.txt | Domains (Part 1) | Mirror (Part 1) | 10.6 MB |
pDNSf-hosts-part2.txt | Domains (Part 2) | Mirror (Part 2) | 10.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 | 9.8 MB |
pDNSf-hosts_no-whitelist.txt.gz | Download | Mirror | 19.4 MB |
βΉοΈ Notes:
Click to expand!
Name | Download Link | Mirror Link | Size | # of Lines |
---|---|---|---|---|
CIDR-IPs Block-List | Download | Mirror | 108.8 KB | 6,982 |
Wildcard Block-List | Download | Mirror | 9.2 KB | 484 |
IP Addresses Block-List | Download | Mirror | 3.2 MB | 238,579 |