hosts-blocklists
Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage
Top Related Projects
🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
AdAway is a free and open source ad blocker for Android.
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Let's make an annoyance free, better open internet, altogether!
Block spying and tracking on Windows
Quick Overview
The notracking/hosts-blocklists
repository is a collection of hosts files that can be used to block various types of online tracking, advertising, and malicious domains. These hosts files can be integrated into network-level ad blockers, firewalls, or DNS servers to provide a comprehensive solution for protecting user privacy and security.
Pros
- Comprehensive Blocking: The repository includes a wide range of blocklists covering different types of tracking, advertising, and malicious domains, providing a robust solution for users.
- Regularly Updated: The blocklists are regularly updated to ensure they remain effective against the latest threats and tracking methods.
- Community-Driven: The project is community-driven, with contributions from various individuals and organizations, ensuring a diverse and well-maintained set of blocklists.
- Flexible Integration: The hosts files can be easily integrated into a variety of network-level ad blockers, firewalls, and DNS servers, making it accessible to a wide range of users.
Cons
- Potential Overblocking: While the comprehensive nature of the blocklists is a strength, it can also lead to potential overblocking, where legitimate websites or services may be inadvertently blocked.
- Maintenance Overhead: Keeping the blocklists up-to-date and maintaining the repository requires ongoing effort, which may be a challenge for a community-driven project.
- Potential Compatibility Issues: Depending on the specific ad blocker, firewall, or DNS server being used, there may be compatibility issues or conflicts with the hosts files.
- Limited Granular Control: Users may have limited control over which specific domains or categories are blocked, as the blocklists are provided as a whole.
Getting Started
To use the notracking/hosts-blocklists
repository, you can follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/notracking/hosts-blocklists.git
-
Identify the appropriate hosts file for your needs. The repository includes several different blocklists, such as
adblock
,tracking
, andmalware
. -
Integrate the selected hosts file into your network-level ad blocker, firewall, or DNS server. The specific steps will depend on the software you are using, but generally, you will need to add the hosts file to the appropriate configuration or settings.
-
Optionally, you can set up a cron job or other automated process to regularly update the hosts file from the repository to ensure you have the latest protection.
By following these steps, you can leverage the comprehensive blocking capabilities of the notracking/hosts-blocklists
repository to enhance your online privacy and security.
Competitor Comparisons
🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
Pros of StevenBlack/hosts
- Comprehensive: StevenBlack/hosts provides a more extensive list of ad and tracker domains, covering a wider range of sources.
- Community-driven: The project has a larger and more active community, with more contributors and regular updates.
- Customization: StevenBlack/hosts offers more options for customization, allowing users to select specific blocklists or create their own.
Cons of StevenBlack/hosts
- Potential privacy concerns: StevenBlack/hosts includes some domains that may be used for legitimate purposes, which could potentially impact user privacy.
- Larger file size: The comprehensive nature of StevenBlack/hosts results in a larger file size, which may be a concern for some users with limited storage or bandwidth.
Code Comparison
StevenBlack/hosts:
0.0.0.0 0.0.0.0
0.0.0.0 1.1.1.1
0.0.0.0 1.1.1.2
0.0.0.0 1.1.1.3
0.0.0.0 1.1.1.4
notracking/hosts-blocklists:
0.0.0.0 0.0.0.0
0.0.0.0 1.1.1.1
0.0.0.0 1.1.1.2
0.0.0.0 1.1.1.3
0.0.0.0 1.1.1.4
The code structure is similar between the two repositories, with both using the format of 0.0.0.0 <domain>
to block specific domains. The main difference is the list of domains included in each repository.
AdAway is a free and open source ad blocker for Android.
Pros of AdAway/AdAway
- Provides a comprehensive ad-blocking solution for Android devices, blocking ads at the system level.
- Actively maintained with regular updates to keep up with changing ad networks.
- Supports custom host files, allowing users to add their own blocking rules.
Cons of AdAway/AdAway
- Requires root access on Android devices, which may not be available or desirable for all users.
- May cause compatibility issues with some apps that rely on ad revenue.
- Requires manual updates to the host file, which can be inconvenient for some users.
Code Comparison
notracking/hosts-blocklists
# Malware domains
0.0.0.0 0-access.com
0.0.0.0 0-cdn.com
0.0.0.0 0-client.com
0.0.0.0 0-count.com
0.0.0.0 0-pixel.com
AdAway/AdAway
# Ads
127.0.0.1 ad.doubleclick.net
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 securepubads.g.doubleclick.net
The key differences are that AdAway/AdAway focuses on blocking ad-related domains, while notracking/hosts-blocklists covers a broader range of malware and tracking domains. AdAway/AdAway also uses the 127.0.0.1
address to redirect blocked domains, while notracking/hosts-blocklists uses 0.0.0.0
.
Pros of GoodbyeAds
- GoodbyeAds provides a more comprehensive list of ad-related domains, covering a wider range of advertising networks and trackers.
- The project is actively maintained, with regular updates to the blocklist.
- The repository includes instructions and tools for easily integrating the blocklist into various ad-blocking solutions.
Cons of GoodbyeAds
- The blocklist may be more aggressive, potentially blocking some non-advertising content or functionality.
- The repository does not provide the same level of customization and flexibility as hosts-blocklists, which allows users to selectively enable or disable specific entries.
- The project is primarily focused on ad-blocking, while hosts-blocklists covers a broader range of privacy and security-related domains.
Code Comparison
hosts-blocklists:
0.0.0.0 example.com
0.0.0.0 www.example.com
0.0.0.0 tracking.example.com
GoodbyeAds:
0.0.0.0 ads.example.com
0.0.0.0 analytics.example.com
0.0.0.0 metrics.example.com
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Pros of anudeepND/blacklist
- Regularly updated with the latest ad and tracker domains
- Includes a wide range of categories, such as ads, trackers, and malware
- Provides separate lists for different use cases (e.g., mobile, desktop)
Cons of anudeepND/blacklist
- May block some legitimate websites or services
- Requires manual maintenance to keep up with changes in the ad/tracker landscape
- Doesn't provide the same level of customization as notracking/hosts-blocklists
Code Comparison
notracking/hosts-blocklists:
0.0.0.0 0track.com
0.0.0.0 1-800-flowers.com
0.0.0.0 1.cnn.com
0.0.0.0 1.gravatar.com
0.0.0.0 1.revsci.net
anudeepND/blacklist:
0.0.0.0 1.cnn.com
0.0.0.0 2.cnn.com
0.0.0.0 3.cnn.com
0.0.0.0 4.cnn.com
0.0.0.0 5.cnn.com
Let's make an annoyance free, better open internet, altogether!
Pros of EnergizedProtection/block
- Comprehensive blocklist: EnergizedProtection/block provides a more extensive and up-to-date blocklist compared to notracking/hosts-blocklists.
- Customization options: EnergizedProtection/block offers more granular control over the blocklist, allowing users to enable or disable specific categories of blocked domains.
- Active development: The EnergizedProtection/block project is actively maintained and regularly updated, ensuring the blocklist remains effective against the latest threats.
Cons of EnergizedProtection/block
- Larger file size: The EnergizedProtection/block repository has a larger file size compared to notracking/hosts-blocklists, which may impact performance on resource-constrained devices.
- Potential over-blocking: The comprehensive nature of the EnergizedProtection/block blocklist may result in some legitimate websites being blocked, potentially causing issues for users.
- Complexity: The additional customization options in EnergizedProtection/block may make it more complex for some users to set up and maintain.
Code Comparison
notracking/hosts-blocklists:
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
EnergizedProtection/block:
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
0.0.0.0 0.0.0.0
The code structure is similar between the two repositories, with both using the 0.0.0.0
syntax to block domains. However, the specific domains blocked may differ significantly between the two projects.
Block spying and tracking on Windows
Pros of WindowsSpyBlocker
- Provides a comprehensive set of rules to block Windows telemetry and spyware
- Includes a GUI tool for easy configuration and management
- Supports both hosts file and firewall-based blocking
Cons of WindowsSpyBlocker
- Requires more system resources than a simple hosts file
- May interfere with some legitimate Windows functionality
- Requires regular updates to keep up with changing telemetry targets
Code Comparison
notracking/hosts-blocklists:
0.0.0.0 www.microsoft.com
0.0.0.0 vortex.data.microsoft.com
0.0.0.0 settings-win.data.microsoft.com
crazy-max/WindowsSpyBlocker:
# Microsoft
$BLOCKHOST,www.microsoft.com
$BLOCKHOST,vortex.data.microsoft.com
$BLOCKHOST,settings-win.data.microsoft.com
The notracking/hosts-blocklists approach uses a simple hosts file format, while the crazy-max/WindowsSpyBlocker uses a more structured rule-based format. The latter provides more flexibility and control, but may require more maintenance.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
The NoTracking blocklist will be shutting down soon. Please read https://github.com/notracking/hosts-blocklists/issues/900 for more details.
No more ads, tracking and other virtual garbage
The NoTracking blocklist is a DNS based filter list for blocking ads, malware, phising and other online garbage.
General blocklist policies
- Should not break useful and commonly used services
- Blocks tracking servers
- Blocks advertising servers
- Blocks analytics servers
- Blocks scam websites
- Blocks malware servers
- Blocks webminers
- Blocks phishing servers
Optimization
The optimizer makes full use of domainname based wildcard filtering *.adhost.net
, this reduces the chance of missing any new subdomains and significantly reduces the size of the blocklists.
Dead hosts removal
All hostnames are constantly monitored for updates. In case the A, AAAA, CNAME and NS records return NXDOMAIN they will be marked as dead and removed. Domains are tested on their whois data and removed if they have been unregistered for a certain time.
The current list of dead hostnames can be found here and have a look here for all unregistered domains.
Sources
Most sources come from public hostfile type lists, though several AdblockPlus lists are also included only for their non-3rd party networking filters ||evilhost.com^
. See SOURCES.md for the full overview of all included lists.
Versions
List | Compatibility |
---|---|
dnsmasq/dnsmasq.blacklist.txt | Dnsmasq |
adblock/adblock.txt | Adguard Home, uBlock Origin, Pi-Hole |
dnscrypt-proxy/dnscrypt-proxy.blacklist.txt | Dnscrypt-proxy |
unbound/unbound.blacklist.conf | Unbound |
hostnames.txt & domains.txt | Dnsmasq (version < 2.80 only, use both files) |
How to install
- Instructions for AdblockPlus (eg. uBlock, Adguard Home, Pi-Hole)
- Instructions for dnscrypt-proxy
- Instructions for dnsmasq
- Instructions for dnsmasq (old: pre v2.80)
- Instructions for unbound
- Instructions for Control D
Supporting Notracking blocklist
If you are intrested in supporting the project you can:
- Submit false positives
- Donate with Paypal
- Donate Bitcoin: 37VkbtMDgxCiHaCSS4PNPDo2z5AwM8grB2
- Donate Ethereum: 0xaf446938cd43de5a267e9596a40be55a86f6b4a8
Top Related Projects
🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.
AdAway is a free and open source ad blocker for Android.
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Let's make an annoyance free, better open internet, altogether!
Block spying and tracking on Windows
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot