I want to block social media websites on my computer so that I can avoid distractions and work in peace. One solution I came across was to modify the /etc/hosts
file to point to localhost
, so I tried this:
127.0.0.1 localhost
127.0.1.1 typhus
127.0.0.1 facebook.com
127.0.0.1 linkedin.com
127.0.0.1 youtube.com
127.0.0.1 twitter.com
127.0.0.1 pinterest.com
127.0.0.1 intstagram.com
Interestingly, while it blocks Twitter and Pinterest, the rest of the websites are accessible in my browser even though their ping
points to 127.0.0.1
.
What am I doing wrong?