Windows 7
To access the hosts file in Windows 7 you can use the following command in the Run Line to open notepad and the file.
notepad c:\windows\system32\drivers\etc\hosts
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.
0.0.0.0 www.facebook.com
![sshot-2010-08-31-[20-51-49]](http://www.howtogeek.com/wp-content/uploads/2010/08/sshot20100831205149.png)
Now that you have edited your Hosts file make sure to save it.
![sshot-2010-08-31-[20-54-07]](http://www.howtogeek.com/wp-content/uploads/2010/08/sshot20100831205407.png)
Now notice if we try to access Facebook in IE we can’t get to the page.
![sshot-2010-08-31-[20-56-44]](http://www.howtogeek.com/wp-content/uploads/2010/08/sshot20100831205644.png)
.
![sshot-2010-08-31-[21-04-27]](http://www.howtogeek.com/wp-content/uploads/2010/08/sshot20100831210427.png)
![sshot-2010-08-31-[19-41-19] sshot-2010-08-31-[19-41-19]](http://www.howtogeek.com/wp-content/uploads/2010/08/sshot20100831194119.png)
No comments:
Post a Comment