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.
Advice 3: How to add computer to domain
Connect a local computerrunning Windows^ to the domain is a standard operation performed by the normal operations of the system. The procedure does not require in-depth knowledge and the use of additional software.
Connection of the local computer that is running Windows to a domain is done in the dialog "system Properties". There are several ways to open this dialog: bring up the main system menu by pressing the button "start" and open the context menu of the element "My computer/Computer" click right mouse button. Select "Properties";- go to "Run". Type sysdm.cpl in the Open box, and confirm the selected actions by clicking the OK button;- go to "control Panel". Expand the "Performance and maintenance" double click the mouse and select the "System".
Go to the tab "computer Name" dialog box and type the name of your domain in "Domain". Use the "Advanced" button to change the DNS suffix and save the made changes by pressing three times the button OK. Restart the system to apply the changes.
Use an alternative method of adding computer to the domain using the built-in utilities Netdom.exe. To do this, return to the main menu start and click All programs. Open the link to "Standard" and call the context menu item "Command prompt" by right-clicking the mouse. Select "Run as administrator" and напечатайтеnetdom join %ComputerName% /domain:domainname /userd:DOMAINadministrator /password:parolu text box with a command shell. Confirm the selected action by pressing the function key Enter.
Please note that by default Windows 7 utility Netdom.exe not available. To activate this built-in tool from the RSAT package, available for free download on the official website of Microsoft.