You will need
- Computer with Windows operating system.
To find the hosts file, you must open Windows Explorer, navigate to the root of the system drive and open the folder at the following path: WindowsSystem32Driversetc. Run the file by double clicking on it. In the opened window select the program which will open the document. It is recommended to use any text editor, e.g. Notepad or Notepad.
In the opened document you will see a list of domains that was paid by you or by the system. The standard list usually consists of several lines: first, lines beginning with the characters "#", and secondly that contain themselves directly ' (via 127.0.0.1).
If the document cannot be opened with standard programs, it is recommended to change the file properties. Just right-click on it and select "Properties". In the window that appears, uncheck the item "read Only" and hit button "Apply" and "OK".
To add your line, creating an exception for a site, you must copy the line "127.0.0.1 localhost" and paste it on the next line (press Enter). Localhost should be changed to the domain of the blocked website. Thus, the line will look as follows: 127.0.0.1 site.ru. In some cases, before the domain, you should specify the www is generally typical of older sites.
Now press Ctrl + S to save the amendments made to the hosts file. Restart the computer, if you want to try this file. To cancel the blocking of the site you want to remove the entire string with the name of the domain from this file. After the removal of a specific ' the problem of the impossibility of maintaining such a file. In this case, you must delete the file and restart the computer.
Advice 2 : How to edit the hosts file
There are several viruses that block access to certain Internet resources. They usually affect the most popular social network and similar sites. Most often, the removal of this virus is to change a single file.
If you for some reason can't access the following sites: mail.ru, odnoklassniki.ru, vkontakte.ru, vk.com then you have to change, or rather clear, the file host. Click on "My computer" by pressing simultaneously the keys "start" and E.
Now open the list of folders located on the system partition of the hard drive. Navigate to the Windows directory. Now find and open the System32 folder. Navigate to the Drivers folder and open the etc folder. Find a file host that has no extension. Click right mouse button and select "Open with".
Now select Notepad and click OK. Delete all the contents of this fileby pressing Ctrl and A and then Delete. Save by pressing Ctrl and S. to Close it. If the message that you do not have access rights to this file, then close the host file without saving. Click again the right mouse button and select "Run as Administrator". Repeat the algorithm described above.
If so, you failed to flush the contents of this file, just delete it. In the case where the deletion of the file cannot host, restart the computer and hold the F8 key. In the menu that appears select "Windows Safe mode". Follow the procedure of cleaning the desired file as described in the third step.
If you cleaned the host file and access to resources did not appear, repeat the algorithm entry in the etc folder. Now open the folder and go to the tab "View". Check the box next to "Show hidden files and folders". If after activating this item, you see another file host, do the cleaning. Be sure to check your computer's antivirus program after performing all the above procedures.