Use hblock to improve your security and privacy by blocking ads, tracking and malware domains

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

Want to keep a copy of your /etc/hosts

sudo cp /etc/hosts /etc/hosts-original
These are the exact words from the developer, Héctor Molinero Fernández, on his github site:

This tool will basically change the content of your /etc/hosts file so that 100.000+ domains will be blocked.

We have built a package so the application can be easily installed and updated!

All you need to do is install the application and run it once. A timer and a service will make sure that you will get the latest blocked domains at a certain interval.


A backup will never hurt anyone.

sudo pacman -S arcolinux-hblock-git
man hblock

You can read more about hblock on his github.

Temporarily disable hblock with

hblock -S none -D none

This was the original content of my /etc/hosts file (for reference and backup). localhost ArcoLinuxB
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
July 2019 renamed hblock-git
whitelist & blacklist

Update your system to be sure you have the last version.

Or install it now

sudo pacman -S arcolinux-hblock-git

Then type this command in your terminal to start it all


Add the whitelist domain names in


and the blacklist domain names in


In the video you see me whitelist with success.


Current content of my whitelist file aka /etc/hblock.d/whitelist.list
  1. Redlight and redlight-gtk – to be able to locate your geoip
  2. website to analyze webtraffic

adblock icon
to xfce settings

In a month or two click it again
to get the new blocked domains