How to edit the hosts file in Windows 10
How to find the hosts file in Windows 10To start editing, first you need to find out where the hosts file is located in Windows 10. To do this, you need to open "Explorer" and go to the following path:
How to view hidden files and folders in Windows 10.
Modifying the hosts file in Windows 10The main purpose of editing the hosts file is to restrict local access to certain Internet resources. To do this, you need to open the file and edit it as follows.
- Navigate to the directory containing the hosts file. (see above)
- Open the file with Notepad.
- For example, you want to block access to the site example.com from your computer. To do this, go to the end of the hosts file, and enter the following information:
- Save the file. Now from this computer it will be impossible to access this site until you delete this line.