返回排行榜

Fast and lightweight DNS proxy as ad-blocker for local network with many features

ad-blockeradblockerdnsself-hostedgolangselfhostedpiholedns-over-httpsdns-serverparental-controladblock
Star 增长趋势
Star
6.8k
Forks
289
周增长
Issues
40
2k4k6k
2020年1月2022年3月2024年5月2026年7月
制品库Go Modulesgo get github.com/0xERR0R/blocky
README

GitHub Workflow Status GitHub Workflow Status GitHub latest version GitHub Release Date GitHub go.mod Go version Docker pulls Docker Image Size (latest) Codecov Codacy grade Go Report Card Donation Liberapay receiving

Blocky

Blocky is a DNS proxy and ad-blocker for the local network written in Go with following features:

Features

  • Blocking - Blocking of DNS queries with external lists (Ad-block, malware) and allowlisting

    • Definition of allow/denylists per client group (Kids, Smart home devices, etc.)
    • Periodical reload of external allow/denylists
    • Regex support
    • Blocking of request domain, response CNAME (deep CNAME inspection) and response IP addresses (against IP lists)
  • Advanced DNS configuration - not just an ad-blocker

    • Custom DNS resolution for certain domain names
    • Conditional forwarding to external DNS server
    • Upstream resolvers can be defined per client group
  • Performance - Improves speed and performance in your network

    • Customizable caching of DNS answers for queries -> improves DNS resolution speed and reduces amount of external DNS queries
    • Prefetching and caching of often used queries
    • Using multiple external resolver simultaneously
    • Low memory footprint
  • Various Protocols - Supports modern DNS protocols

    • DNS over UDP and TCP
    • DNS over HTTPS (aka DoH)
    • DNS over TLS (aka DoT)
    • DNS over QUIC (aka DoQ, RFC 9250)
    • DNS over HTTPS/3 (aka DoH3, RFC 9114)
  • Security and Privacy - Secure communication

    • Supports modern DNS extensions: DNSSEC, eDNS, ...
    • DNSSEC validation of upstream resolvers
    • Free configurable blocking lists - no hidden filtering etc.
    • Provides DoH Endpoint
    • Uses random upstream resolvers from the configuration - increases your privacy through the distribution of your DNS traffic over multiple provider
    • Blocky does NOT collect any user data, telemetry, statistics etc.
  • Integration - various integration

    • Prometheus metrics
    • Prepared Grafana dashboards (Prometheus and database)
    • Logging of DNS queries per day / per client in CSV format or MySQL/MariaDB/PostgreSQL/Timescale database - easy to analyze
    • Various REST API endpoints
    • CLI tool
  • Simple configuration - single or multiple configuration files in YAML format

    • Simple to maintain
    • Simple to backup
  • Simple installation/configuration - blocky was designed for simple installation

    • Stateless (no database, no temporary files)
    • Docker image with Multi-arch support
    • Single binary
    • Supports x86-64, ARM, and MIPS architectures -> runs fine on Raspberry PI and OpenWrt routers
    • Community supported Helm chart for k8s deployment

❤️ Support Blocky

Blocky is free, open source, and built entirely in my spare time — with no telemetry, no data collection, and no hidden filtering. It keeps the DNS for thousands of home networks, homelabs, and businesses clean and private, and it always will.

Maintaining a project this size — fixing bugs, reviewing pull requests, shipping new features, and keeping up with security — takes a lot of time. Thousands of people run Blocky; only a handful support it. If Blocky is useful to you, please consider chipping in. Your support directly funds ongoing development and helps keep Blocky independent and ad-free, forever.

Even a small recurring contribution makes a real difference and is hugely appreciated. 🙏

Sponsor on GitHub Support on thanks.dev Donate on Liberapay Buy me a coffee on Ko-fi Donate via PayPal

🥇 Gold sponsors

Gold sponsor: GeoffreyvanOostveen

Sponsors

Sponsor: QapfSponsor: masipcatSponsor: V-Mann-NickSponsor: bioxz

Thank you to everyone who supports Blocky! ❤️

Quick start

You can jump to Installation chapter in the documentation.

Full documentation

You can find full documentation and configuration examples at: https://0xERR0R.github.io/blocky/

Contribution

Issues, feature suggestions and pull requests are welcome!

ko-fi

相关仓库
pi-hole/pi-hole

A black hole for Internet advertisements

ShellOtherpi-holead-blocker
pi-hole.net
60k3.3k
StevenBlack/hosts

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

PythonPyPIMIT Licensepythonunified-hosts
30.7k2.4k
pi-hole/docker-pi-hole

The official Pi-hole Docker image from pi-hole.net

ShellOtherpi-holedocker-container
pi-hole.net
11.4k1.2k
AdAway/AdAway

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

CGNU General Public License v3.0androidad-blocker
adaway.org
9.3k695
anudeepND/whitelist

A simple tool to add commonly white listed domains to your Pi-Hole setup.

PythonPyPIMIT Licensepi-holead-blocker
4.4k288
EnergizedProtection/block

Let's make an annoyance free, better open internet, altogether!

MIT Licenseadadblock
energized.pro
2.8k212
Barre/privaxy

Privaxy is the next generation tracker and advertisement blocker. It blocks ads and trackers by MITMing HTTP(s) traffic. Also check out my new project, https://github.com/Barre/ZeroFS

Rustcrates.ioGNU Affero General Public License v3.0adblockadblocking
zerofs.net
2.5k123
julian-klode/dns66

DNS-based Host Blocker (and lightweight ad blocker) for Android

JavaMavenGNU General Public License v3.0androidblocker
jak-linux.org/projects/dns66/
2.3k209
DandelionSprout/adfilt

The place where I, DandelionSprout, store my web filter lists for countless topics, including my Nordic adblock list. As simple as that, really.

Adblock Filter ListOtherad-blockerfilterlist
2.2k182
hectorm/hblock

Improve your security and privacy by blocking ads, tracking and malware domains.

ShellMIT Licensead-blockeradblock
hblock.molinero.dev
2k116
reisxd/TizenTube

A TizenBrew module to remove ads and add support for SponsorBlock for your Tizen TV.

JavaScriptnpmGNU General Public License v3.0ad-blockertizen
tizentube.app
1.9k151
Ultimate-Hosts-Blacklist/Ultimate.Hosts.Blacklist

The Ultimate Unified Hosts file for protecting your network, computer, smartphones and Wi-Fi devices against millions of bad web sites. Protect your children and family from gaining access to bad web sites and protect your devices and pc from being infected with Malware or Ransomware.

ShellMIT Licensehostshostsfile
1.6k174