Posts

Comments

Comment by freefaler on Tools for keeping focused · 2020-08-31T23:56:04.637Z · LW · GW

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.