랭킹으로 돌아가기

hectorm/hblock

Shellhblock.molinero.dev

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

ad-blockeradblockadblockeradsadvertisementsblockerdnsdnsmasqhostshostsfilemalwareprivacy
스타 성장
스타
2k
포크
116
주간 성장
이슈
22
5001k1.5k
2015년 8월2019년 3월2022년 11월2026년 7월
README

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

What is this for?

hBlock is a POSIX-compliant shell script that gets a list of domains that serve ads, tracking scripts and malware from multiple sources and creates a hosts file, among other formats, that prevents your system from connecting to them.

:warning: hBlock by default replaces the hosts file of your system, consider making a backup first if you have entries you want to preserve.

Installation

hBlock is available in various package managers. Please check the PACKAGES.md file for an up-to-date list.

The latest available version can also be installed manually by running the following commands:

curl -o /tmp/hblock 'https://raw.githubusercontent.com/hectorm/hblock/v3.5.1/hblock' \
  && echo 'd010cb9e0f3c644e9df3bfb387f42f7dbbffbbd481fb50c32683bbe71f994451  /tmp/hblock' | shasum -c \
  && sudo mv /tmp/hblock /usr/local/bin/hblock \
  && sudo chown 0:0 /usr/local/bin/hblock \
  && sudo chmod 755 /usr/local/bin/hblock

Additionally, a systemd timer can be set to regularly update the hosts file for new additions.

Usage

The default behavior of hBlock can be adjusted with multiple options. Use the --help option or check the hblock.1.md file for the full list.

asciicast

Nightly builds

Nightly builds of the hosts file, among other formats, can be found on the hBlock website.

Temporarily disable hBlock

Sometimes you may need to temporarily disable hBlock, a quick option is to generate a hosts file without any blocked domains by running the following command:

hblock -S none -D none

I found a false positive, what should I do?

It's possible that sometimes one of the hBlock sources includes a domain that shouldn't be blocked, in those cases the best way to proceed is to temporarily add said domain to the allowlist and report the problem to the original blocklist author. This way it will also be automatically removed from hBlock within 24h.

To find which blocklist is behind a false positive you can clone the hMirror project and search for that domain. Although please note that not all hMirror blocklists are used by default in hBlock, an updated list of the sources used can be found in the SOURCES.md file.

관련 저장소
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
0xERR0R/blocky

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

GoGo ModulesApache License 2.0ad-blockeradblocker
0xerr0r.github.io/blocky/
6.8k289
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
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