Blocking websites using terminal doesn't work anymore

Hi guys


I've been using Terminal to block websites for some time now, but it has stopped working recently. I tried following the procedure that I had used before (typing sudo nano /etc/hosts in Terminal, typing '127.0.0.1 www.website.com' and '127.0.0.1 site.com' in the host file, saving, and typing sudo 'dscacheutil -flushcache' in the terminal) with new websites, but it doesn't work.


I tried entering 'sudo killall -HUP mDNSResponder' instead of 'sudo dscacheutil -flushcache', but that didn't work.

I tried entering 000.0.0.0 instead of 127.0.0.1, but that didn't work.

I tried saving the host file to desktop, modifying it there, and then saving it to it's original location again, but that didn't work


Here you can see my host file:

I also tried adding 'fe80::1%1o0 localhost' behind '::1 localhost' in the host file, since I saw some comment on this forum, saying that it should be there, but that didn't change my website-blockage problems.


Any suggestions will be happily received.


I have a macMojave - 10.14.5


Cheers, Jóhann Örn

MacBook

Posted on Sep 14, 2019 2:49 PM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Blocking websites using terminal doesn't work anymore

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.