use your hostsfile as a domain blocker to block ads, malware, porn, gambling, social and whatever other sites you wish to block!
initialize a specified hostsfile
$ touch myhostsfile # create a new hostsfile
$ racket hostblocker.rkt --init myhostsfile
add an awesome default source (unified hosts = ads+malware) from StevenBlack's hosts project with --defaults
$ racket hostblocker.rkt --file myhostsfile --defaults
$ racket hostblocker.rkt --file myhostsfile --list # view the added source
or add whatever remote or local sources you wish with --add
$ racket hostblocker.rkt --file myhostsfile --add http://adaway.org/hosts.txt adaway
hostblocker requires racket, and the build tool raco
$ sudo pacman -S racket # install racket
$ raco pkg install # install dependencies
$ sudo make
-
--add
add remote or local sources -
--remove
remove hosts based on the source -
--update
update all source -
--defaults
provide good defaults for ads, social, porn and gambling -
--add-tag
add a tag to a host -
--enable-by-tag
enable all hosts with a tag -
--disable-by-tag
disable all hosts with a tag - add tests and documentation