This repository provides a host and domainname based blocklist specifically designed for use with dnsmasq. Most entries are gathered from multiple, actively maintained sources and automatically updated, cleaned, optimized and moderated on a daily basis. The blocklists support both ipv4 and ipv6.
The optimizer makes full use of dnsmasqs capability to block entire domains such as *.doubleclick.net (domains.txt). This reduces the chance of missing any new subdomains and significantly reduces the size of the blocklists. Hostnames that cannot be blocked on a domain level will still be listed in a regular hostname based blocklist (hostnames.txt).
It's important to use both domains.txt
and hostnames.txt
simultaniously in dnsmasq to get full coverage!
- Should not break useful websites or apps
- Blocks tracking servers
- Blocks advertising servers
- Blocks analytics servers
- Blocks fake websites
- Blocks malware servers
- Blocks webminers
- Download the following two files (or use a daily cronjob to do it automatically)
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/domains.txt
- Add the following lines to your dnsmasq.conf
conf-file=/path/to/domains.txt
addn-hosts=/path/to/hostnames.txt
- Restart dnsmasq
sudo service dnsmasq restart
Because Pi-hole does not fully support loading of dnsmasq domain filters (details here), you should add your own .conf
file in /etc/dnsmasq.d/
. This way you can still use our blocklists with Pi-hole, but updating has to be done by an external daily cronjob. It's also recommended to remove all default Pi-hole lists, since these are already included in our list in a more efficient manner.
- Add the following lines to
/etc/dnsmasq.d/99-pihole-custom-lists.conf
(example filename)
conf-file=/path/to/domains.txt
addn-hosts=/path/to/hostnames.txt
- (Optional, but recommended) Remove the default Pi-hole lists in
/etc/pihole/adlists.list
- Update Pi-hole
pihole -g
Domain and hostname lists
- http://winhelp2002.mvps.org/hosts.txt
- http://www.malwaredomainlist.com/hostslist/hosts.txt
- http://someonewhocares.org/hosts/hosts/
- https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt
- https://s3.amazonaws.com/lists.disconnect.me/simple_malware.txt
- http://hosts-file.net/ad_servers.txt
- http://hosts-file.net/exp.txt
- http://hosts-file.net/mmt.txt
- http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts
- https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts
- https://raw.githubusercontent.com/Dawsey21/Lists/master/adblock-list.txt
- https://raw.githubusercontent.com/quidsup/notrack/master/trackers.txt
- http://malwaredomains.lehigh.edu/files/BOOT
- http://malwaredomains.lehigh.edu/files/immortal_domains.txt
- https://raw.githubusercontent.com/vokins/yhosts/master/hosts.txt
Excluding legit license servers
- https://raw.githubusercontent.com/piwik/referrer-spam-blacklist/master/spammers.txt
- https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
- https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt
- http://www.dshield.org/feeds/suspiciousdomains_Medium.txt
- https://raw.githubusercontent.com/mitchellkrogza/Badd-Boyz-Hosts/master/hosts
- http://www.shallalist.de/Downloads/shallalist.tar.gz
only 'adv' & 'tracker' lists
- http://dsi.ut-capitole.fr/blacklists/download/publicite.tar.gz
only 'publicite' list
- https://ssl.bblck.me/blacklists/hosts-file.txt
- https://raw.githubusercontent.com/bkrcrc/turk-adlist/master/hosts
- https://v.firebog.net/hosts/static/w3kbl.txt
- https://raw.githubusercontent.com/Yhonay/antipopads/master/hosts
- https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-pihole-filters/hostfile.txt
- https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser
- https://raw.githubusercontent.com/FadeMind/hosts.extras/master/StreamingAds/hosts
- https://raw.githubusercontent.com/azet12/KADhosts/master/KADhosts.txt
- https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts
- https://raw.githubusercontent.com/tyzbit/hosts/master/data/tyzbit/hosts
- https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
- https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts
- https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Dead/hosts
- https://ransomwaretracker.abuse.ch/downloads/RW_DOMBL.txt
- https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
- a large set of custom entries
Adblock Plus lists (only full hostname, non-3rd party filters)
- https://raw.githubusercontent.com/Dawsey21/Lists/master/adblock-list.txt
- https://www.fanboy.co.nz/enhancedstats.txt
- https://easylist-downloads.adblockplus.org/easylist.txt
- https://easylist-downloads.adblockplus.org/easylistchina.txt
- https://easylist-downloads.adblockplus.org/easylistdutch.txt
- https://easylist-downloads.adblockplus.org/easylistgermany.txt
- https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-adblock-filters/adblock.txt
- https://easylist-downloads.adblockplus.org/easylistspanish.txt
- https://easylist-downloads.adblockplus.org/liste_fr.txt
- https://easylist-downloads.adblockplus.org/easylistitaly.txt
- https://www.void.gr/kargig/void-gr-filters.txt
- https://raw.githubusercontent.com/k2jp/abp-japanese-filters/master/abpjf.txt
- https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt
- https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt
- https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt
- https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt
- https://raw.githubusercontent.com/abpvn/abpvn/master/filter/src/abpvn_general.txt
- https://raw.githubusercontent.com/szpeter80/hufilter/master/hufilter.txt
- https://easylist-downloads.adblockplus.org/advblock.txt
- https://raw.githubusercontent.com/yous/YousList/master/youslist.txt
- https://raw.githubusercontent.com/jspenguin2017/uBlockProtector/master/uBlockProtectorList.txt
- http://hosts-file.net/fsa.txt
too many false calls
- http://hosts-file.net/emd.txt
too many false calls
- http://rlwpx.free.fr/WPFF/hosts.htm
too many false calls, focussed on content blocking
- https://github.com/AdguardTeam/AdguardDNS
they parse all domains from adblock filters, causing loads of false calls
- http://www.joewein.de/sw/bl-text.htm
very outdated, almost all domains expired