3

I struggle with procrastination on sites like reddit, youtube, and netflix so I want to block them. I know I can do this by modifying /etc/hosts to redirect to 127.0.0.1, but I still can and do change the hosts file back. Is there some way I can set a password for /etc/hosts so that I can not sudo edit it? Alternatively can someone recommend a better solution to block these sites? I use High Sierra and Chrome.

Thanks for your help.

2
  • 3
    My next door neighbor has Facebook and a few other blocked via one of the parental control blockers. I set the password and I’m the only one that knows it, he can’t undo it.
    – Tyson
    Oct 10 '17 at 0:19
  • 1
    Wouldn't you be able to undo anything you can think to change and instead just need to bring about the will to effect change? A technical solution to a behavioral problem is generally the last / least effective resort.
    – bmike
    Oct 10 '17 at 12:53
2

What you wish to achieve sounds like a duplicate of this question. There are complications such as SIP to consider these days. More trouble than it's worth.

It would be more effective to 'firewall' those sites in some way that does not rely on a password that you may forget, or be tempted to revert when you should be concentrating your attentions elsewhere. Fortunately, as the other question stated, there's an app (or many) to do that.

I personally used Self Control some years ago when trying to get coursework done. It's free. There are other similar apps out there, some paid-for for the sake of extra features, though I feel those extra features are just another avenue of procrastination.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .