Recently, I've added Twitter, HN, and a few other sites to my hosts file to block them. A few I check in on once a week or so.
More focus, less noise.
Overall, I think my life (and those immediately around me) are better for it.
Recently, I've added Twitter, HN, and a few other sites to my hosts file to block them. A few I check in on once a week or so.
More focus, less noise.
Overall, I think my life (and those immediately around me) are better for it.
And yet here you are :-)
The worse thing about being technically literate is knowing how to get around all the blocks you put in place to stop wasting time.
- on windows its c:\Windows\System32\Drivers\etc\hosts
If you add a line in it like
0.0.0.0 reddit.com www.reddit.com
You tell the computer to use 0.0.0.0 (your own address) for those domains, and they subsequently won't load.BTW. 0.0.0.0 is not "your own IP", that would be 127.0.0.1. 0.0.0.0 is non-routable, so always resulting in error.
cat /etc/hosts
if it outputs something that has to do with network, you know the file is there :). It might be that default user-facing tools on Mac don't look for system files?The experiment you speak of is something I've now run for the better part of a decade. Adding sites to the host files does make you forget, eventually.
If you add the following to the end of your hosts file,
127.0.0.1 Facebook.com
The above will redirect all requests to faceboom.com back to your own computer (the 127.0.0.1 part), instead of trying to search for Facebook's ip address and sending you there.
The hosts file is stored in different places on Mac vs windows, a quick search will get you going.
I don't really use Snapchat, Instagram, or Twitter anymore and I didn't really miss them when deleting them off my phone. The only things I have to work on next are HackerNews and Reddit.
I've been trying to replace my break times with book reading instead of Redditing/HNing. It's still tough because my breaks are relatively short and I don't feel like I get to fully immerse into the book before I have to set it back down and get back to coding.