Posts

Sorted by New

Wiki Contributions

Comments

I use a simpler system with /etc/hosts files on my Linux and Mac machines.

I have a hosts_work file, with all distracting sites pointing to 127.0.0.1.

For example:

127.0.0.1 youtube.com
127.0.0.1 www.youtube.com

A cron job runs every morning and replaces my /etc/hosts file with hosts_work file. After 22:00 another cron job returns the original one. In that way I don't need any 3rd party software.