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.com
notfacebook. com
. The latter one assigns onlyfacebook.
to another IP. Any errors in thehosts
file is silently ignored and that's it.facebook
(that's possible) then it's blocked as well. It's just not needed because there won't be a host with that hostname.