Skip to content

Latest commit

 

History

History
executable file
·
17 lines (12 loc) · 454 Bytes

README.md

File metadata and controls

executable file
·
17 lines (12 loc) · 454 Bytes

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