LetMeWork – A Toggle Switch for the Time-Wasting Web
If you have trouble exercising self-discipline and can’t seem to stop yourself from constantly checking your social sites and email accounts for new updates, here’s an easy solution.
Download and unzip the file – LetMeWork.zip – to your desktop and double-click it to instantly block some of the distracting sites on your computer. When you are done with your work, double-click the same file again to unblock access to all the sites as before.
[*] You may see a User Access Control warning dialog in Windows Vista or 7 – just say yes.
How the script blocks and unblocks websites
The standard way for blocking any site on your computer is through the HOSTS file that’s available in the Windows directory.
It does take some effort to edit the HOSTS file and what the above script (source code) does is hide all the complexity from the user and lets you block as well as unblock sites with a click.
The list is customizable. You may open the vbs file in notepad and edit the WebsitesToBlock array to include any other website(s) in the banned list.
WebsitesToBlock=Array("twitter.com", "www.youtube.com", "facebook.com"
There are some browser extensions that seem to solve the same problem but this script is run-once, use-everywhere. You execute it from the desktop and it will block /unblock access to select sites across all browsers.