How to block distracting sites
Here is a good way to block sites that might be distracting to you:
Terminal and type
sudo nano /etc/hosts , you will see a screen like this:
at the bottom of the page add the sites you want to block in the following format, it is best to add the non www and www version:
Here is how it should look:
y to exit and save.
Congratulations, you will now be more productive!.
note: you won’t be able to access those sites unless you go back to
/etc/hosts and delete them from the list.