I tried to block Facebook on Chrome by changing the hosts file but to no avail. What could possibly went wrong?
I followed exactly what the op did and rebooted, but I could still have access to Facebook.
I tried to block Facebook on Chrome by changing the hosts file but to no avail. What could possibly went wrong?
I followed exactly what the op did and rebooted, but I could still have access to Facebook.
Just try adding these three hosts name and replace ip address 127.0.0.1
facebook.com
www.facebook.com
m.facebook.com
mobile.facebook.com
As I checked when typed facebook.com, the site will be redirected to m.facebook.com, so we won't be able to access.
facebook.comnotfacebook. com. The latter one assigns onlyfacebook.to another IP. Any errors in thehostsfile is silently ignored and that's it. – GiantTree Apr 20 '16 at 12:51facebook(that's possible) then it's blocked as well. It's just not needed because there won't be a host with that hostname. – GiantTree Apr 20 '16 at 13:00