Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai...
by igetspam on Thursday February 04, 2016 @03:39PM
(#11037033)
There should be newlines in there...
$ cat /etc/hosts|grep face
127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai...
by unfocused828 on Friday February 05, 2016 @01:22AM
(#11039891)
The problem with /etc/hosts is that it is too easy to simply undo. I use https://selfcontrolapp.com, which lets you block a list of sites for a set period of time and does not have a way to circumvent that.
Well, since the app is open source, you surely could just read the code and figure out a method. However, doing that requires enough focused effort to source-dive and debug something. It is much much easier to prevent oneself from doing that than to keep oneself from editing a file.
If anyone is thinking of responding to this comment by speculating how to circumvent the tool, take that to another thread.
Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai...
by WizzleKake on Thursday February 04, 2016 @04:03PM
(#11037206)
you can just:
$ grep face /etc/hosts
Try this:
$ cat /etc/hosts|grep face 127.0.0.1 facebook.com 127.0.0.1 www.facebook.com