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”

    Gaby
    2 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?
    .

    2 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.