Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

hectorm/hblock

Repository files navigation

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 frommultiple sourcesand creates ahosts file,among other formats, that prevents your systemfrom connecting to them.

⚠️ hBlock by defaultreplaces 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 thePACKAGES.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, asystemd 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 thehblock.1.md file for thefull list.

asciicast

Nightly builds

Nightly builds of the hosts file, among other formats, can be foundon 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 followingcommand:

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 totemporarily add said domain to the allowlist and report the problem to the original blocklist author. This way it will also be automaticallyremoved from hBlock within 24h.

To find which blocklist is behind a false positive you can clone thehMirror 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 theSOURCES.md file.


[8]ページ先頭

©2009-2025 Movatter.jp