0

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?

1

1 Answer 1

0

I finally found it out on my own: I needed to mention the websites as www.facebook.com, and not facebook.com.

Not the answer you're looking for? Browse other questions tagged .