Blocking Websites On Your Mac Using Terminal

If you want to prevent yourself from going to a website you can manually block a domain using the Terminal. To do so, you must edit your hosts file and redirect a domain to your local address. This could be useful to help you resist distractions while getting work done.

Comments: 2 Responses to “Blocking Websites On Your Mac Using Terminal”

    6 years ago

    Can terminal be attacked by pishing if I access it so often to block websites? And add a fraudulent web site to redirect me to it?

    6 years ago

    Gaby: Phishing attacks involve tricking the human (you) into doing something. So I'm not sure how that would apply here. Would you obey an email that asked you to use the Terminal to change how a domain is handled?

Comments Closed.