/blockit

A shell script that blocks certain websites for a certain length of time.

Primary LanguageShell

blockit

A shell script that blocks certain websites for a certain length of time.

Takes a list of sites from a text file called sites and blocks access to them for a certain number of minutes.

Arguments

Use --add / -a followed by the number of minutes to add a block.

Use --check / -c to check if the sites should still be blocked. This would ordinarily be done on the crontab.

Usage

Block sites for 3 hours:

$ ./blockit.bash -a 180