本项目的GITHUB地址:https://github.com/notracking/hosts-blocklists
以下安装步骤来自官方。
No more ads, tracking and other virtual garbage
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!
General policies
- Should not break useful websites or apps
- Blocks tracking servers
- Blocks advertising servers
- Blocks analytics servers
- Blocks fake websites
- Blocks malware servers
- Blocks webminers
How to install
Default dnsmasq setup
- 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
Code language: JavaScript (javascript)
- Add the following lines to your dnsmasq.conf
conf-file=/path/to/domains.txt
addn-hosts=/path/to/hostnames.txt
Code language: JavaScript (javascript)
- Restart dnsmasq
sudo service dnsmasq restart
For a Pi-hole setup
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
Code language: JavaScript (javascript)
- (Optional, but recommended) Remove the default Pi-hole lists in
/etc/pihole/adlists.list
- Update Pi-hole
pihole -g
Sources
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://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.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
- https://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
- https://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://gitlab.com/ZeroDot1/CoinBlockerLists/raw/master/list_browser.txt
- 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
- http://www.urlvir.com/export-hosts/
- https://raw.githubusercontent.com/mitchellkrogza/The-Big-List-of-Hacked-Malware-Web-Sites/master/.dev-tools/output/domains/ACTIVE/list
- https://malc0de.com/bl/BOOT
- https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
- https://data.netlab.360.com/feeds/dga/dircrypt.txt
- https://data.netlab.360.com/feeds/dga/fobber.txt
- https://data.netlab.360.com/feeds/dga/ccleaner.txt
- https://osint.bambenekconsulting.com/feeds/c2-dommasterlist-high.txt
- https://raw.githubusercontent.com/lightswitch05/hosts/master/ads-and-tracking-extended.txt
- http://security-research.dyndns.org/pub/malware-feeds/ponmocup-infected-domains-shadowserver.csv
- 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
- https://filters.adtidy.org/extension/chromium/filters/11.txt
- https://filters.adtidy.org/extension/chromium/filters/1.txt
- https://filters.adtidy.org/extension/chromium/filters/16.txt
- https://filters.adtidy.org/extension/chromium/filters/7.txt
- https://filters.adtidy.org/extension/chromium/filters/9.txt
- https://filters.adtidy.org/extension/chromium/filters/13.txt
了解 Starx's Home 的更多信息
Subscribe to get the latest posts sent to your email.
0 条评论