hBlock

A POSIX-compliant shell script, designed for Unix-like systems, that gets a list of domains that serve ads, tracking scripts and malware from multiple sources and creates a hosts file (alternative formats are also supported) that prevents your system from connecting to them. Aimed at improving security and privacy through blocking advert, tracking and malware associated domains.

Open Source

hBlock Source Code

Author

hectorm

Description

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

#ad-blocker#adblock#adblocker#ads#advertisements#blocker#dns#dnsmasq#hosts#hostsfile#malware#privacy#protection#ransomware#security#shell#trackers#tracking#trojans#unified-hosts

Homepage

https://hblock.molinero.dev

Repository

  • LicenseMIT
  • Created21 Aug 15
  • Primary languageShell
  • Size2,941 KB
  • Stars2,009
  • Forks117
  • Watchers2,009

Language Usage

Language Usage

Project Health

  • Last commit11 days ago
  • Open issues26
  • Latest releasev3.5.2

Recent Commits

  • Héctor Molinero Fernández(31 Oct 26)

    3.5.2

  • dependabot[bot](31 Oct 26)

    Bump actions/checkout from 6 to 7 in the github-actions-all group (#199) Bumps the github-actions-all group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 6 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-all ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

  • Pasqual Troncone(31 Oct 26)

    Fix subdomain filtering for domains containing hyphens (#204) * Fix subdomain filtering for domains containing hyphens Fixes #203 * Use uppercase name for awk input variable --------- Co-authored-by: Héctor Molinero Fernández <[email protected]>

  • Héctor Molinero Fernández(31 Oct 26)

    Add uBlock 2026 filter list

  • dependabot[bot](20 Jan 26)

    Bump actions/checkout from 5 to 6 in the github-actions-all group (#191) Bumps the github-actions-all group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 5 to 6 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-all ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

  • Héctor Molinero Fernández(20 Jan 26)

    Fix APKBUILD

  • dependabot[bot](11 Oct 25)

    Bump actions/checkout from 4 to 5 in the github-actions-all group (#186) Bumps the github-actions-all group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-all ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

  • Steven(10 Jun 25)

    fix: Github Actions kept failing due to missing package (#182) * Update main.yml Added gawk in fedora packages * Update main.yml Added gawk package to building job and create RPM for Fedora

  • Héctor Molinero Fernández(12 Mar 25)

    3.5.1

  • Héctor Molinero Fernández(08 Mar 25)

    Add Red Flag Domains list

  • Héctor Molinero Fernández(08 Mar 25)

    Add uBlock 2025 filter list

  • Héctor Molinero Fernández(16 Feb 25)

    Remove OpenWrt test until the image is rebuilt with apk included

  • Héctor Molinero Fernández(22 Oct 24)

    3.5.0

  • Héctor Molinero Fernández(09 Oct 24)

    Add AWAvenue list, fixes #160

  • Federico Torrielli(28 Sept 24)

    feat: hblock can now retry multiple times with the -n or --retry option (#167) Co-authored-by: Héctor Molinero Fernández <[email protected]>

  • Héctor Molinero Fernández(20 Jul 24)

    Update Dependabot config

  • Héctor Molinero Fernández(20 Jul 24)

    Reformat GitHub YAML files

  • Héctor Molinero Fernández(29 May 24)

    3.4.5

  • Héctor Molinero Fernández(29 May 24)

    Install findutils explicitly in tests

  • Héctor Molinero Fernández(29 May 24)

    Remove AdGuard - CNAME trackers list, fixes #154, #157

  • Héctor Molinero Fernández(06 May 24)

    Preserve PATH value in tests

  • Pedro Sader Azevedo(14 Feb 24)

    Add Fedora package in PACKAGES.md (#153) * Add Fedora package --------- Co-authored-by: Héctor Molinero Fernández <[email protected]>

  • Héctor Molinero Fernández(24 Jan 24)

    3.4.4

  • Héctor Molinero Fernández(24 Jan 24)

    Revert "Add USOM list, fixes #141" This reverts commit 1bbf4f692d82524fd235809001d2566de7ce434c. The list contains too many dead domains.

  • Héctor Molinero Fernández(21 Jan 24)

    3.4.3

  • Héctor Molinero Fernández(21 Jan 24)

    Fix wrong exit status due to a race condition when the "--parallel" option is used

  • Héctor Molinero Fernández(21 Jan 24)

    Update user agent

  • Héctor Molinero Fernández(21 Jan 24)

    Update OpenWrt Docker image

  • Héctor Molinero Fernández(21 Jan 24)

    nawk is now in Alpine's stable repositories

  • Héctor Molinero Fernández(21 Jan 24)

    Use AlmaLinux in tests

hBlock Security

4.3/10

Repo Security Summary

Updated 24 Aug 26

  • Maintained0/10
  • Code-Review1/10
  • Dangerous-Workflow10/10
  • Binary-Artifacts10/10
  • PackagingN/A
  • Token-Permissions10/10
  • Pinned-Dependencies0/10
  • CII-Best-Practices2/10
  • Fuzzing0/10
  • License10/10
  • Signed-ReleasesN/A
  • Branch-Protection3/10
  • Security-Policy0/10
  • SAST0/10

hBlock Website

Website

Index of /hBlock

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

Redirects

Does not redirect

Security Checks

2 security checks failed (63 passed)

  • Domain Recently Created
  • Domain Very Recently Created

Server Details

  • IP Address172.67.196.206
  • LocationSan Francisco,California,United States of America,NA
  • ISPCloudFlare Inc.
  • ASNAS13335

Associated Countries

  • USUS

Safety Score

Website marked as safe

100%

Trackers

No known trackers found

Blacklist Check

hblock.molinero.dev was found on 0 blacklists

  • AntiSocial Blacklist
  • Artists Against 419
  • Badbitcoin
  • Bambenek Consulting
  • CERT Polska
  • CoinBlockerLists
  • CRDF
  • CryptoScamDB
  • EtherAddressLookup
  • EtherScamDB
  • Fake Website Buster
  • MetaMask EthPhishing
  • NABP Not Recommended Sites
  • OpenPhish
  • PetScams
  • PhishFeed
  • PhishFort
  • Phishing.Database
  • PhishStats
  • PhishTank
  • Phishunt
  • RPiList Not Serious
  • Scam.Directory
  • SecureReload Phishing List
  • Spam404
  • StopGunScams
  • Suspicious Hosting IP
  • ThreatFox
  • ThreatLog
  • TweetFeed
  • URLhaus
  • ViriBack C2 Tracker

Website Preview

Website preview

hBlock Reviews

More Ad Blockers

About the Data: hBlock

Edit hBlock Data

You can edit hBlock's entry in this section of awesome-privacy.yml by submitting a PR to our GitHub repo.
Note that some of the information shown above has been aggregated from external sources, a list of these can be found data documentation.

Origin Data

Modify Data

API

You can access hBlock's data programmatically via our API. Simply make a GET request to:

https://api.awesome-privacy.xyz/v1/services/hblock

The REST API is free, no-auth and CORS-enabled. To learn more, view the API Docs or read the API Usage Guide.

Share hBlock

Help your friends compare Ad Blockers, and pick privacy-respecting software and services.
Share hBlock and Awesome Privacy with your network!