{"id":1726,"date":"2019-09-06T09:53:51","date_gmt":"2019-09-06T01:53:51","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&p=1726"},"modified":"2022-10-08T18:10:23","modified_gmt":"2022-10-08T10:10:23","slug":"windows-7-how-to-edit-hosts-file","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/windows-7-how-to-edit-hosts-file","title":{"rendered":"Windows 7, How to edit hosts file"},"content":{"rendered":"\t\t
Hosts file is a file where you can manually enter a hostname and IP address pair to bypass the DNS server.<\/p>
By default, you cannot see the hidden file in the system folders. The hosts file is used to map hostnames (in other words domains) to IP addresses. With the hosts file, you can change the IP address that you resolve a given domain name to. This change only affects your own computer without affecting how the domain is resolved worldwide.<\/p>
To show hidden folders in Windows 7, open a windows explorer, click the “Organize” drop-down button and select “Folder and search options”.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tFirst, from the Folder Options, choose “Show hidden files, folders, and drives, press Apply and OK to save the setting.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tSecond,\u00a0 access to hosts file’s directory to make the change.<\/p>
May open with cmd, %systemroot%\\system32\\drivers\\etc\\<\/p>
or access to My Computer -> C drive -> \u00a0Windows -> System 32 -> drivers -> etc<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tThird, double-click host file to open and edit the file.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tThen, 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.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tBesides that, In order to edit the hosts file, you have to click Start<\/strong>\u00a0button and type in\u00a0Notepad\u00a0<\/strong>and then right click and choose\u00a0Run as Administrator<\/strong>\u00a0to open the hosts file.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t 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.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t 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.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t