How to change hosts in windows 7?
How to change hosts in windows 7?
The hosts file is used in operating familiesWindows to restrict access to unwanted Internet resources. To edit it in Windows 7, the user must have administrator rights, which can be obtained through the command line or text editor installed in the system.
Modifying hosts on the command line
Run the command line program in the system. To do this, go to the "Start" - "All Programs" - "Standard". After that, click the left button of the mouse on the "Command line" item. In the list of options that appears, select "Run from administrator". If necessary, enter the required password if you are using a Guest account or an ordinary user account. You will see a black window in which you need to enter the command notepad C: WindowsSystem32driversetchosts. After the correct input, a "Notepad" editor window will appear before you, which will be opened with administrator rights necessary for editing and editing the document. Change the file according to your requirements. To add an undesirable resource for a visit, enter a string of the type "127.0.0.1 address_site", where 127.0.0.1 blocks access to the site from the current computer, and "site_address" is the Internet address of the resource whose access you want to close.Opening a file directly from the editor window
You can also open the hosts file without usingcommand line. To do this, go to the "Start" - "My Computer" - "Local Disk C:". In the list of directories, select Windows - System32. In the list of programs that appears, find a file called Notepad (notepad.exe). Right click on the document and select "Run from administrator". If necessary, enter the password for the administrator account in the system and click OK. The "Notepad" window appears before you. Go to the "File" - "Open" menu. After the opened directory, go to the folder "Computer" - "Local drive C:" - Windows - System32 - drivers - etc. In the list of files, select hosts and start editing it. After making the necessary changes, click "File" - "Save". If you can not find the hosts file in the specified folder, use the "All files" switch that is available in the lower right corner of the "Opening" window immediately after the "File name" line. You can also change the hosts file under the Administrator account via "Explorer". Click "Start" - "My Computer", and then go to "Local Disk C:" - Windows - System32 - drivers - etc. If the file does not appear in the list, go to the "Tools" - "Folder Options" menu. Select the "View" tab, and then click "Show hidden files". Click "OK" to apply the changes. After that, right click on the hosts file and select the "Open with" menu.