Edit the hosts file in Windows 7


One of the functions of the Hosts file is to block or allow pages as you need.

The hosts file from XP to 7 is on this path:

C: > Windows > 32 > drivers > etc

To modify this file in previous versions of Windows 7 is only to this location, open the file, modify and save changes.

But this does not work in Windows 7, trying to save the changes makes the system to display a window where it says you can not save in that directory which suggests to keep a copy in My Documents. To change this follow the steps:

1) You must enable all hidden files and folders.

2) Open the “Notepad” and do not open with double click! Right click and click as administrator:

hosts file in Windows 7-2

The system may prompt you to allow execution; you should click yes.

3) Once open Notepad go to File -> Open:

hosts file in Windows 7-3You may access the hosts file along your path: C: > WINDOWS > system32 > drivers > etc


Upon reaching the etc. folder; you will not able to see the hosts file. To get the access it must selected to show all files from the drop down menu as shown in the image:

hosts file in Windows 7-4

4) Open the hosts file. Once you opened it, you can edit the hosts file according to our needs. The picture shows an example of how to block a . Write 127.0.0.1 ; domain name of the with www and another same line the without www.

hosts file in Windows 7-1

5) Save the changes and close Notepad.

Note:

1. Always use both with www. extension and non www. version of the website which you want to block.

2. It is very useful for parents, system administrators to disallow certain website(s) to be accessed from that particular computer.


Incoming search terms:

win7 hosts file,what does windows 7 hosts file look like,how to update host file in windows 7,FILE WINDOWS 7 FOR WALLPAPER,where to find the host file on windows 7,thecustomizewindows com/2010/11 fix,modify host file windows 7,how to edit host file in windows 7 home basic,hosts file win7,host file in win7,windows 7 hosts file
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
About Abhishek

Abhishek Ghosh is an Orthopedic Surgeon, Inventor with 216 Patents, Current editor of The Customize Windows Media Group. You can follow and know more about Dr. +Abhishek Ghosh on Google Plus and follow on Twitter as @AbhishekCTRL.

Trackbacks

  1. [...] looking advertisements (or you may modify your HOSTS file to add more security). We have discussed how to edit the hosts file in Windows 7 earlier, you can read it if you are not sure how to edit Windows HOSTS [...]

Speak Your Mind

*