A simple bash script to block domains for a determined duration (using /etc/hosts
file)
Usage | . |
---|---|
start | Start blocking domains |
Xm | Block domains for the next X minutes |
Xh | Block domains for the next X hours |
list | List the blocked domains |
stop | Stop the blocking |
force-stop | Force the stop (useful if the computer have been rebooted since the start) |
help | Print this help message |