hectorm/hblock
hectorm/hblock has 2,012 GitHub stars and 117 forks. GitHot measured +1 stars in 24 hours, -1 in 7 days, and +4 in 15 days. Last checked 2026-11-24 00:38 UTC. Last push 2026-10-31.
측정된 스타 증가
- in 24h
- +1
- in 7 days
- -1
- in 15 days
- +4
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
광고, 추적 및 악성 코드 도메인을 차단해 보안과 개인정보 보호를 강화합니다.
보안README.md
OriginalImprove 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.2/hblock' \
&& echo 'fd73aca7ddeeb0308ac265d4b2689ab84a9a82e03f9af19fd134a56a286a1a1b /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.
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.
관련 프로젝트 살펴보기
불러오는 중…