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.

notepad c:\windows\system32\drivers\etc\hosts

sshot-2010-08-31-[19-41-19]

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.

sshot-2010-08-31-[20-51-49]

Now that you have edited your Hosts file make sure to save it.

sshot-2010-08-31-[20-54-07]

Now notice if we try to access Facebook in IE we can’t get to the page.

sshot-2010-08-31-[20-56-44]

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.

sshot-2010-08-31-[21-04-27]

Watch the video

Contact Us

By submitting this form, you accept the privacy statement