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.