Windows 7, How to edit hosts file.

What is hosts file?
Hosts file is a file where you can manually enter a hostname and IP address pair to bypass the DNS server.
By default, you cannot see the hidden file in the system folders.
To show hidden folders in Windows 7, open a windows explorer, click "Organize" drop down button and select "Folder and search options".
From the Folder Options, choose "Show hidden files, folders and drives, press Apply and OK to save the setting.
Now, access to hosts file's directory to make the change.
May open with cmd, %systemroot%\system32\drivers\etc\
or access to My Computer -> C drive ->  Windows -> System 32 -> drivers -> etc.
Double click host file to open and edit the file.
Note that this method for editing the Hosts file will not work. You will get a message saying you do not have permission to save to this location.
In order to edit the hosts file, you have to click Start button and type in Notepad and then right click and choose Run as Administrator to open the hosts file.
Now navigate to drivers/etc/ folder again and make sure to choose All files for File Types otherwise you won't see the Host file.
Make your changes and click save to save all your changes. You will not get the error about not being able to modify the Host file.

Add Feedback