Skip to content

block websites and ads efficiently and absolutely using hosts file

Notifications You must be signed in to change notification settings

TheOrangeOne/hostblocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hostblocker

use your hostsfile as a domain blocker to block ads, malware, porn, gambling, social and whatever other sites you wish to block!

usage

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

installation

hostblocker requires racket, and the build tool raco

from source

$ sudo pacman -S racket # install racket
$ raco pkg install # install dependencies
$ sudo make

TODO

  • --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

About

block websites and ads efficiently and absolutely using hosts file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published