A POSIX-compliant shell script that blocks ads, tracking, and malware domains by generating a hosts file.
hBlock is a POSIX-compliant shell script that improves security and privacy by blocking ads, tracking, and malware domains. It works by aggregating domain lists from multiple sources and generating a hosts file (or other formats) to prevent system connections to these unwanted domains. This helps reduce exposure to malicious content and intrusive tracking.
System administrators, privacy-conscious users, and developers on Unix-like systems who want to enhance their device's security without relying on browser extensions or network-level filters.
Developers choose hBlock for its simplicity, reliability, and system-wide blocking capability. It's a lightweight, script-based solution that works across various POSIX-compliant environments, offering customizable options and automated updates without complex dependencies.
Improve your security and privacy by blocking ads, tracking and malware domains.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Aggregates domain lists from multiple curated sources listed in SOURCES.md, ensuring broad coverage against ads, trackers, and malware.
Generates a hosts file that blocks connections at the operating system level, protecting all applications without per-app configuration.
Supports various output formats beyond the standard hosts file, as detailed in resources/alt-formats/, for different use cases.
Allows users to adjust blocking with options like allowlisting and temporary disabling, as shown in the usage documentation.
Can be set up with a systemd timer to regularly update blocklists, ensuring protection against new threats.
By default, hBlock replaces the system hosts file, which can accidentally remove custom entries if backups are not made, as warned in the README.
Reporting false positives requires cloning the hMirror project and contacting original list authors, a multi-step process that isn't integrated into hBlock.
As a POSIX-compliant shell script, hBlock does not support Windows, restricting its usability across all platforms.
Operates entirely via command-line, lacking a graphical interface that could make it more accessible for less technical users.