Convert Figma logo to code with AI

anudeepND logoblacklist

Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒

1,108
113
1,108
21

Top Related Projects

26,451

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.

7,036

AdAway is a free and open source ad blocker for Android.

Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage

Network-wide ads & trackers blocking DNS server

Quick Overview

The anudeepND/blacklist repository is a collection of curated domain lists designed for use with Pi-hole, a network-wide ad blocker. It provides multiple lists to block ads, trackers, and potentially unwanted domains, enhancing privacy and improving browsing experience.

Pros

  • Comprehensive coverage of ad and tracking domains
  • Regular updates to maintain effectiveness
  • Customizable with different lists for various needs
  • Compatible with Pi-hole and other DNS-based blocking solutions

Cons

  • May occasionally block legitimate domains, requiring manual whitelisting
  • Requires some technical knowledge to implement effectively
  • Potential for over-blocking, which could impact certain website functionalities
  • Needs periodic updates to stay current with new ad domains

Getting Started

  1. Install Pi-hole on your network (follow Pi-hole installation instructions)
  2. Access your Pi-hole admin interface
  3. Go to "Adlists" section
  4. Add the desired blacklist URL(s) from the repository:
    https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
    https://raw.githubusercontent.com/anudeepND/blacklist/master/facebook.txt
    
  5. Update gravity in Pi-hole to apply the new lists
  6. Monitor and adjust as needed, whitelisting any falsely blocked domains

Competitor Comparisons

26,451

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.

Pros of hosts

  • Larger and more comprehensive blocklist with multiple categories
  • More frequent updates and active community contributions
  • Offers customizable combinations of blocklists

Cons of hosts

  • May be overly aggressive for some users, potentially blocking desired content
  • Larger file size may impact performance on some devices

Code comparison

hosts:

0.0.0.0 example.com
0.0.0.0 ads.example.com
0.0.0.0 tracking.example.com

blacklist:

0.0.0.0 example.com
0.0.0.0 ads.example.com

Key differences

  • hosts provides a more extensive blocklist with various categories
  • blacklist focuses on a curated list of domains for general ad-blocking
  • hosts allows for customization by combining different lists
  • blacklist is more lightweight and may be suitable for less powerful devices

Use cases

hosts:

  • Users seeking comprehensive protection against ads, tracking, and malware
  • Those who want customizable blocking options

blacklist:

  • Users looking for a simpler, lightweight ad-blocking solution
  • Those who prefer a more conservative approach to domain blocking

Both repositories serve the purpose of blocking unwanted domains, but they cater to different user preferences and needs. The choice between them depends on the desired level of protection, customization, and performance considerations.

7,036

AdAway is a free and open source ad blocker for Android.

Pros of AdAway

  • Open-source Android app with a user-friendly interface for ad-blocking
  • Supports custom host files and whitelist/blacklist management
  • Regular updates and active community support

Cons of AdAway

  • Requires root access on Android devices
  • Limited to Android platform, not suitable for other operating systems
  • May interfere with some apps that rely on ads for functionality

Code Comparison

AdAway (Java):

private void applyHostsFile() {
    CommandExecutor.Result result = runScriptAsRoot(Constants.SCRIPT_FILE_PATH);
    if (!result.success) {
        Log.e(Constants.TAG, "Error applying hosts file: " + result.error);
    }
}

blacklist (Shell script):

#!/bin/bash
cat $WHITELIST $BLACKLIST | sort | uniq > $FINAL_BLACKLIST
sed -i '/^$/d' $FINAL_BLACKLIST
sed -i '/^#/d' $FINAL_BLACKLIST

While AdAway provides a full-featured Android app for ad-blocking, blacklist offers a simpler, more flexible approach with shell scripts for managing blocklists across various platforms. AdAway's code focuses on applying hosts files on Android, while blacklist uses basic text processing to create and maintain blocklists.

Pros of GoodbyeAds

  • More comprehensive blocklist, including mobile ads and tracking domains
  • Regular updates and active maintenance
  • Includes specialized lists for specific platforms (e.g., Samsung, Xiaomi)

Cons of GoodbyeAds

  • May be overly aggressive, potentially blocking some legitimate content
  • Larger file size, which could impact performance on low-end devices
  • Less granular control over blocked domains compared to blacklist

Code Comparison

blacklist:

0.0.0.0 ad.doubleclick.net
0.0.0.0 static.doubleclick.net
0.0.0.0 m.doubleclick.net
0.0.0.0 mediavisor.doubleclick.net

GoodbyeAds:

0.0.0.0 ad.doubleclick.net
0.0.0.0 static.doubleclick.net
0.0.0.0 m.doubleclick.net
0.0.0.0 mediavisor.doubleclick.net
0.0.0.0 bid.g.doubleclick.net

Both repositories provide ad-blocking lists, but GoodbyeAds offers a more extensive and frequently updated collection. While this can lead to more effective ad blocking, it may also result in occasional false positives. blacklist, on the other hand, provides a more focused approach with potentially fewer unintended blocks. The code comparison shows that both lists include similar basic entries, but GoodbyeAds tends to have additional, more specific domains listed.

Automatically updated, moderated and optimized lists for blocking ads, trackers, malware and other garbage

Pros of hosts-blocklists

  • More comprehensive blocking list with over 100,000 domains
  • Regularly updated with community contributions
  • Includes separate lists for different purposes (e.g., tracking, ads, malware)

Cons of hosts-blocklists

  • May cause over-blocking and require more fine-tuning
  • Larger file size, potentially impacting performance on low-end devices
  • More complex structure, which can be harder to maintain or customize

Code Comparison

hosts-blocklists:

0.0.0.0 0.0.0.0 # Fix for hosts files with 0.0.0.0
0.0.0.0 tracking.example.com
0.0.0.0 ads.example.com
0.0.0.0 malware.example.com

blacklist:

0.0.0.0 doubleclick.net
0.0.0.0 advertising.com
0.0.0.0 googlesyndication.com
0.0.0.0 googleadservices.com

Both repositories provide hosts file-based blocking lists for ad and tracking domains. hosts-blocklists offers a more extensive and diverse set of blocking rules, while blacklist focuses on a curated list of common advertising and tracking domains. The code structure is similar, but hosts-blocklists includes comments and categorization within the file.

Network-wide ads & trackers blocking DNS server

Pros of AdGuardHome

  • Comprehensive DNS-level ad blocking and network-wide protection
  • User-friendly web interface for easy configuration and management
  • Supports various platforms and can be run as a Docker container

Cons of AdGuardHome

  • More complex setup and configuration compared to simple blocklists
  • Requires dedicated hardware or server to run effectively
  • May impact network performance if not properly optimized

Code Comparison

AdGuardHome configuration example:

dns:
  upstream_dns:
    - https://dns.cloudflare.com/dns-query
  bootstrap_dns:
    - 1.1.1.1
  filters:
    - enabled: true
      url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt

blacklist example (hosts file format):

0.0.0.0 ad.doubleclick.net
0.0.0.0 analytics.google.com
0.0.0.0 ads.youtube.com

Summary

AdGuardHome offers a more comprehensive and customizable solution for network-wide ad blocking and DNS management, while blacklist provides a simpler, lightweight approach focused on blocking specific domains. AdGuardHome requires more setup and resources but offers greater flexibility and features, whereas blacklist is easier to implement but may lack advanced functionality.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

logo
   

Curated hostfile to block trackers and advertisements

 

Table of contents

Features

  • Host file: Based on hosts file, all the bad domains are blocked with 0.0.0.0
  • Any device: Compatible with all devices, regardless of OS.
  • Blockings: Strictly blocks advertisements, malwares, spams, spyware & trackers and prevents your system from connecting to them.
  • Page load time: Quicker loading and cleaner looking web pages with fewer distractions.
  • Privacy: Helps to increase privacy by blocking online trackers.
  • Efficient: Lower resource waste (bandwidth, CPU, memory, battery etc.).
  • Curated: Each domain and tested and verified before adding to the list.
  • Well maintained: Domains are regularly updated and false positives will be addressed quickly.
  • Mirror: All the files are available in mirror which provides Last-Modified header and has 99.99% uptime.

Who can use this file?

These host files for Unix-like systems, the list contain domains that serve ads, tracking scripts and malware after adding this list to your setup, it prevents your system from connecting to them. Host file preferred over DNS so if a domain name is resolved by the hosts file, the request never leaves your computer.

Overview

It is highly recommended to use the mirror link as it provides Last-Modified header which ensures that you are getting the latest version. And the mirror has 99.99% uptime.

Host FileDomain CountDescriptionUpdate FrequencyRaw LinkMirror Link
adservers.txt42,536A reliable host file containing advertising domains, trackers, malwares and other unsafe domains. I collect these domains from my Pi-Hole and I test them for a few days before adding to the list. You can request additional domains or report existing domains via issues tab.Frequentlylinklink
facebook.txt4,000Host file containing domains related to facebook.com. This file doesn't block other Facebook products such as WhatsApp, Instagram etc. If you want to block all Facebook related services, use this list created by lightswitch05.Occasionallylinklink
coinminer.txt5,939This host file was created when JavaScript miners were added to torrent sites. Most of the domain in this file are still active today. I recommend you to use CoinBlockerLists by ZeroDot1 along with this list.Discontinuedlinklink

Usage

This host file can be used on any device including Android, iOS, Linux, MacOS, routers with custom firmware etc. It is highly recommended to use the mirror link as it provides Last-Modified header which ensures that you are getting the latest version. And the mirror has 99.99% uptime.

  • Rooted Android: For rooted device, this host file can be used with AdAway, a free and open-source ad-blocker for Android.
  • Non-rooted Android: For non-rooted devices, you can use Blokada, DNS66, Nebulo, Personal DNS Filter, or RethinkDNS + Firewall.
  • iOS: You can use Blokada MacOS: This host file can be used with gasmask.
  • Windows: On Windows, you can use HostsMan to get the best Windows Hosts Usage Experience. Make sure to disable DNS Client Service.
  • Linux: There are many scripts available on the Internet that will add the hosts to you. Or you can modify the /etc/hosts.
  • DNS based adblockers: These files are compatible with DNS based adblockers such as Pi-hole and AdGuardHome.
  • Adblockers: This list is compatible with uBlock, AdGuard or any other extension, software & app.

For further assistance, you can send a DM to me on Twitter.

Validation

You can test if your ad blocker is working properly or not by visiting these websites:
https://ads-blocker.com/testing/
https://blockads.fivefilters.org/

How do I determine an ad domain?

  • Adam:ONE Assistant (formerly DNSthingy Assistant): This browser extension will list all of the domains that are queried when a web page is loaded. You can often look at the list of domains and cherry pick the ones that appear to be ad-serving domains.
  • Using a packet sniffer (Recommended): HttpCanary HttpCanary is a powerful HTTP/HTTPS/HTTP2/WebSocket/TCP/UDP packets capture and analyzer app designed for Android platform. Source
  • Using inbuilt Developer tool: For Chrome and Firefox, ctrl+shift+I will land you in Developer tools menu.
  • Using an Android app: Net Guard is an Android app that can be used to monitor any specific apps, works on unrooted devices too.

Featured in:

This project is also available in many host file aggregators and other services.


Common Issues

This host file blocks trackers regardless of whether it collects PII (Personally Identifiable Information) or not. Some domains need to be whitelisted for certain services to work properly. This table helps you to find the affected domain and whitelist accordingly.

DomainsDescriptionServices Affected
uapi.adrise.tvThe Tubi TV Roku App requires the following host to functionTubi TV streams
cdns.gigya.comBreaks search function in National Express and other websites. One should note that Gigya is also used for tracking behavioral data about the visitors. It is extensively used in News Portals, Entertainment and e-commerce sites.'Find my journey' search suggestions
watson.telemetry.microsoft.com
web.vortex.data.microsoft.com
v10.events.data.microsoft.com
v10.vortex-win.data.microsoft.com
v20.vortex-win.data.microsoft.com
Blocking these domains will fail to track Xbox Live Achievements and stats. However these domains are also used to upload crash logs from Windows OS. Depending on the privacy level on your operating system, the crash logs may contain PII.Xbox Live Achievement and Microsoft Defender Advanced Threat Protection
manifest.auditude.comUnable to play videos in Watch TNT app on Roku. The Adobe® Auditude® platform is used by companies that want to provide relevant content and advertisements in videos you watch on the web. Categorized under Advertising, Location, Identity, TrackingUnable to play videos on Watch TNT app on Roku
s.amazon-adsystem.comUnable to play videos on Twitch Client in Windows and MacOS. However Twitch webapp is not affectedWindows and MacOS Twitch Client
s0.2mdn.net
c.evidon.com
Unable to play videos on several news and entertainment sites. Some of the affected sites are: techrepublic and zdnet. s0.2mdn.net is blocked in most of the hostfiles since it's a known tracker.Videos in news and entertainment sites
s.zkcdn.netUnable to play content on DirecTV Now. This domain is also used to serve ads, measure impressions etc.DirecTV Now
graph.instagram.comThe Instagram Graph API allows Instagram Professional accounts — Businesses and Creators — to use your app to manage their presence on Instagram. However, it is also used to track users on the Internet. Developers who use Facebook/IG APIs should whitelist the domain.Instagram and Facebook
tags.tiqcdn.comParamount+ is not working on SkyQ Receiver in Germany (https://github.com/anudeepND/blacklist/issues/207). This domain is also used to serve tracking sripts, measure impressions etc.Paramount+

Stargazers over time


Stargazers over time

Support

Maintaining a quality host file takes a lot of time. I have been contributing to this project over 3 years. Your support will help me to keep the project running and provide you quality service. You can also donate using UPI enabled apps such as PhonePe, Google Pay, Paytm and more! (UPI ID: anudeepnd@ybl). If you have any queries related to PayPal or donation, you can send a DM to me on Twitter.

Donate using Paypal     Donate using UPI apps

License

MIT License

Copyright (c) 2020 Anudeep ND <anudeep@protonmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.