awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
StevenBlack avatar

StevenBlack/hosts

0
View on GitHub↗
30,553 stars·2,418 forks·Python·MIT·6 views

Hosts

This project provides a system-wide content filtering utility that controls network traffic by redirecting domain resolution requests to local null addresses. By mapping unwanted hostnames to these addresses at the operating system level, it effectively blocks connections to advertising, tracking, and malicious domains across all applications on a machine.

The core of the system is a data-driven build pipeline that aggregates multiple curated source lists into a single, unified configuration file. This process is highly customizable, allowing users to employ declarative filtering logic through external blacklist and whitelist files to define exactly which domains are included or excluded. The build process is managed via a command-line interface, which supports various flags to control output formats, source selection, and custom domain mappings.

Beyond basic aggregation, the project supports diverse deployment scenarios, including containerized environments and integration with local network resolver services. It provides platform-specific utilities to ensure consistent application of these filtering rules, including mechanisms to manage local DNS client services for immediate configuration updates. The resulting output is designed to be environment-agnostic, maintaining compatibility across a wide range of operating systems and network services.

Features

  • Content Filtering - Restricts internet access by blocking connectivity to specific categories of websites across the entire machine.
  • DNS Filtering - Restricts internet access by mapping unwanted domains to a null address at the local operating system level.
  • Network Traffic Filters - Blocks malicious or advertising servers by redirecting domain lookups to a local null address.
  • Build Pipelines - The project uses a data-driven build pipeline that processes raw text files through automated filtering and merging steps to produce a final network output.
  • Configuration Generators - Merges multiple data sources and extensions into a single custom network file compatible with various computing environments.
  • DNS Management Tools - Provides capabilities for mapping hostnames to custom IP addresses to facilitate local domain resolution and internal network routing.
  • Blocklist Aggregators - Aggregates multiple domain categories into a single deduplicated network filtering resource.
  • Malware Protection - Blocks connections to known malicious websites and phishing domains at the system level to enhance network security.
  • Network Filtering Tools - The project automates the application of blocklists to the local system hosts file to prevent connections to known malicious or advertising domains.
  • Ad Blockers - Intercepts and blocks advertisements and tracking scripts at the network level to protect privacy and reduce bandwidth usage.
  • DNS Management Tools - Modifies local hostname resolution to block connections by mapping domains to a null address.
  • Blocklists and Filters - Consolidated and deduplicated hosts files for security and privacy.
  • Identity and Privacy - Tool for blocking undesirable websites via DNS blackholing.
  • Filtering Engines - The system uses external blacklist and whitelist files to determine which entries are included or excluded during the consolidation process.
  • Container Configuration Templates - Provides standardized container configuration templates to ensure consistent and reproducible build environments.
  • Data Filtering Utilities - Provides a blacklist mechanism to automatically filter and remove unwanted domains during data consolidation processes.
  • CLI Configuration Tools - Supports command-line flags to customize output formats, file extensions, and source filtering rules for generated files.
  • Command Line Interfaces - A build-time interface allows users to customize the generation process by passing flags that control output formats and source selection.
  • Domain Configuration Tools - Allows users to define and assign custom domain names to specific network addresses within configuration files.
  • Configuration Management Tools - Combines multiple source files into a unified configuration mapping hostnames to local loopback addresses.
  • Domain Blacklists - Defines specific hostnames to be blocked during the automated build process.
  • Network Resolver Configurations - Provides ready-to-use configuration templates for integrating custom domain filtering rules into local network DNS resolvers.

Star history

Star history chart for stevenblack/hostsStar history chart for stevenblack/hosts

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does stevenblack/hosts do?

This project provides a system-wide content filtering utility that controls network traffic by redirecting domain resolution requests to local null addresses. By mapping unwanted hostnames to these addresses at the operating system level, it effectively blocks connections to advertising, tracking, and malicious domains across all applications on a machine.

What are the main features of stevenblack/hosts?

The main features of stevenblack/hosts are: Content Filtering, DNS Filtering, Network Traffic Filters, Build Pipelines, Configuration Generators, DNS Management Tools, Blocklist Aggregators, Malware Protection.

What are some open-source alternatives to stevenblack/hosts?

Open-source alternatives to stevenblack/hosts include: adguardteam/adguardfilters — AdguardFilters is a collection of curated adblock filter lists, content blocking rulesets, and DNS blocklists. Its… hagezi/dns-blocklists — This project is a comprehensive repository of curated domain blocklists designed for network-wide DNS filtering. It… technitiumsoftware/dnsserver — DnsServer is a recursive and authoritative DNS server that provides domain name resolution and zone hosting. It… dokploy/dokploy — Dokploy is a self-hosted platform-as-a-service designed to simplify the deployment and management of containerized… adaway/adaway — AdAway is an Android network firewall and DNS traffic filter that functions as a local VPN ad blocker. It intercepts… 217heidai/adblockfilters — This project is an adblock filter list aggregator and DNS blocklist generator. It merges multiple blocking rule…

Open-source alternatives to Hosts

Similar open-source projects, ranked by how many features they share with Hosts.
  • adguardteam/adguardfiltersAdguardTeam avatar

    AdguardTeam/AdguardFilters

    4,142View on GitHub↗

    AdguardFilters is a collection of curated adblock filter lists, content blocking rulesets, and DNS blocklists. Its primary purpose is to provide the rules necessary to identify and remove advertisements, tracking scripts, and intrusive elements across web browsers and applications. The project includes specialized rules for cosmetic filtering to hide layout gaps and a malware domain database to block phishing and spyware destinations. It provides distinct filtering sets for different regions and purposes, such as social media blocking. The repository covers broad capability areas including m

    Adblock Filter Listadblockadguardfilter-list
    View on GitHub↗4,142
  • hagezi/dns-blocklistshagezi avatar

    hagezi/dns-blocklists

    20,103View on GitHub↗

    This project is a comprehensive repository of curated domain blocklists designed for network-wide DNS filtering. It functions as a DNS sinkhole feed, providing the necessary data to intercept and block unwanted network requests at the resolution layer before they reach their destination. By returning null or loopback addresses for identified domains, it prevents connections to malicious infrastructure, advertising servers, and tracking endpoints across all devices on a network. The repository distinguishes itself through a tiered categorization logic that allows users to select protection lev

    Textadblockadguardads
    View on GitHub↗20,103
  • technitiumsoftware/dnsserverTechnitiumSoftware avatar

    TechnitiumSoftware/DnsServer

    7,533View on GitHub↗

    DnsServer is a recursive and authoritative DNS server that provides domain name resolution and zone hosting. It functions as both a recursive resolver, performing iterative lookups across the internet, and an authoritative manager for primary and secondary DNS zones. The system distinguishes itself through high-availability clustering and a programmable HTTP API for automating server configurations and bulk record management. It supports a wide range of encrypted transport protocols, including TLS, HTTPS, and QUIC, and allows for custom functionality via a plugin-based request interception fr

    C#cross-platformdhcp-serverdns
    View on GitHub↗7,533
  • dokploy/dokployDokploy avatar

    Dokploy/dokploy

    34,901View on GitHub↗

    Dokploy is a self-hosted platform-as-a-service designed to simplify the deployment and management of containerized applications and databases. It provides a centralized control plane that decouples administrative management from application workloads, allowing users to oversee infrastructure across multiple server nodes through a unified web interface or a command-line tool. The platform distinguishes itself through an extensive library of pre-configured application templates, enabling the rapid deployment of databases, identity providers, and various productivity or development tools. It sup

    TypeScriptbackendbackupsdatabases
    View on GitHub↗34,901
  • See all 30 alternatives to Hosts→