Ad blocker script for Linux.
If you have Arch Linux or Arch based distribution compatible with AUR (Manjaro, Antergos, ArchBang, Bridge Linux) then you can simply install hosty from the AUR:
https://aur.archlinux.org/packages/hosty
- sudo
- Wget
- cURL
- Gawk
-
Ubuntu/Mint/Debian: $ sudo apt-get install wget curl gawk
-
Arch/Manjaro/Antergos: $ sudo pacman -S wget curl gawk
-
Fedora/RHEL/CentOS: $ sudo yum install wget curl gawk
-
SUSE: $ sudo zypper in wget curl gawk
$ curl -L git.io/hosty | sh
$ sudo hosty
You can include exceptions editing the file /etc/hosts.whitelist (With root permissions), one domain name per line.
Besides, hosty apply a internal whitelist for safety. If you want only use your custom whitelist and avoid the internal whitelist run:
$ sudo hosty --all
$ sudo hosty --restore
$ hosty --debug
$ sudo rm /usr/local/bin/hosty