How to edit Windows host file.
How to edit Windows host file
To access the hosts file in Windows you can use the following command in the Run Line to open notepad and the file.
Once notepad is open you can edit the file. In this example we will block Facebook. To do this just enter in the following after the # mark.
Now that you have edited your Hosts file make sure to save it.
Now notice if we try to access Facebook in IE we can’t get to the page.
We also were not able to get to it in Google Chrome… (check notes at the end). Also for more info on editing your Hosts file, check out The Geek’s article on how to create a shortcut to quickly edit your Hosts file.