Editing the hosts file in windows 7. How to change the hosts file. Yak Vіdkriti Hosts

Golovna / Main functionality

In addition to this file, you can set the identity between domain names and IP addresses. For a general purpose, the DNS service (server) is responsible for the service (server), but if this service needs to be “bypassed”, then you need to set a non-standard (one-size-fits-all and one-size-fits-all) permission, then go ahead and set up the hosts file. This system object appeared at once on the Internet, if the DNS service has not yet been used, and it is the only way to indicate for Windows the visibility between the symbolic names of the site with that physical address.

File Format

This file is a system file and is located in the system partition of the disk in the folder Windows\System32\drivers\etc\. Behind its format, the supreme text file with hosts name, but without name extension. Vіn is composed of text rows and can be edited, be it a text editor. The skin of this row can be either a commentary (for each one, the first character is є #), or you need to specify the validity, which may be the format <имя домена>. Mіzh address that іm'yam can be one or more probіv. For example, the row 102.54.81.91 rh.com would map the host rh.com to its address 102.54.81.91. Under your own hour Windows installation 7 forms of a standard document, which can be seen:

How to renew hosts

Sometimes you can fix the situation, if you need to add a cob mill to the file. Vaughn can be blamed either after yoga vipadkovy vladalnya or created, or afterward infusion shkidlivih programs. Let me tell you again that for access to this file (for that number and when it is enabled) you need administrator rights. Instead, yoga can be formed manually in the text editor or obtained from the Internet.

Editing a file

I realized that in order to edit hosts, you need the mother of the administrator's rights. You can edit yogo be a text editor. Like a butt of victorious standard Notepad, which is always installed in Windows 7. You can start yoga in two ways - from command line and with a direct click of Notepad:


If there were any changes in the document, the language should be re-adjusted, otherwise there will not be a new Windows 7 release, the shards of the wines will be re-advanced only at the next hour.

Korist ta Skoda vіd zmin hosts

You can enter the following file with the correct changes to this file, for example:

  • Installed the IP address of the domain with the method of speeding up the link to the site for the sake of bypassing the DNS server.
  • Change the method of blocking access to the song site, for example, to block Windows authentication, or the obvious update of any program. For which IP address, 127.0.0.1 is specified, which the operating system accepts as a redirect to given computer and not up to the real site
  • Change to deafenge your computer local server, but the DNS service doesn't know anything about it. I realized that for this IP address it can be static.

Hosts - the main meta for large scale programs. There are two main, we can say "classic" ways to change a file, to which the attackers go in to take away their own benefit. Change so:

  • Blocking access to servers of anti-virus programs, so that the computer will not be able to capture such a program or update the databases of virus syndromes. For example, as soon as a virus or a trojan enters the hosts, a line like “127.0.
  • Submitting the real address of the site, registered on the DNS server, for details. It is possible that the program that has penetrated the computer, write the line "91.81.71.61 vk.com" in this file, where the address of the computer of the author of the program is given. To fight with the method, to try to go to the site of love, they brought to the attacker’s server, the interface of which is exactly the same as his real twin, but to collect confidential information about the site, for example, his logins and passwords.

Therefore, for any suspicions about the presence of viruses in the system, we should have been turned over to the original file, and for that very reason, someone antivirus programs I will casually carry out monitoring of yoga, and I will tell the koristuvach about all the tests of yoga change.

Unacceptable host file in operating rooms Windows systems The building manager is a lot of trouble for the computers of the computers, so you know that the easiest way to change the files of the building is to change the robot of the sites fed through browsers. They took the opportunity to explore different areas on the Internet, like making changes to the hosts file, blocking the work of the most popular sites among the most popular, such as Vkontakte and Odnoklassniki. To start the robot, it is enough to open the hosts file and delete the new login entry.


As shown by the comments before the previous articles on our site and I will call it VKontakte, there are many problems with opening the hosts file. And on the right, it’s not only that rich coristuvachs don’t learn computer knowledge. Likewise, the evildoers will perfect their own methods, we will attach the correct hosts file, and maybe they will overwhelm it with a fake analogue. In addition, in operating systems Windows Vista and Windows 7 it is important to open the file correctly, so that the mother can save the changes made before.

Let's take a look at how to open the hosts file correctly by looking at simple instructions.

  1. For operating systems Windows Vista and Windows 7 will see up to the system. Otherwise it will be impossible to save the file changes.
  2. I’ll ask the field, as it appears in Windows Vista / 7, right above the “Start” button, after pressing enter the command

    notepad %systemroot%\system32\drivers\etc\hosts


    and press the Enter key on the keyboard.
  3. As a result of the previous review in the test editor Notepad (Notepad), the hosts file is displayed, which should be carefully reviewed and deleted the entries.
  4. When looking at the obov'yazkovo, pay attention to the visibility of the horizontal and vertical swirls of scrolling at the window, to that you see fluctuations, if the records are shifty from the visible part of the screen with numerical gaps or translations of rows. As if the smog of scrolling was revealed at the open window, shift your bellies and respectfully marvel at the screen, so as not to miss the rows that block the robot of the sites.
Why is this method recommended for accessing the hosts file? On the right, in the fact that it was already guessed more by one of the methods of attachment shkіdlivih dіy Malicious people assigned the hosts file the status of "attached". When visible, a pardon hosts file is assigned, which does not avenge records, which destroys the success of sites. Vykoristovuyuchi descriptions in a different way, you need to enter the correct hosts file, navigate as if you want to show up.

For some reason, the previous method seems foldable to you, you can open the hosts file and in the best way. It will only be necessary to add a sprig of additional activities.

  1. See the system h .
  2. attached files on the computer.
  3. Go to the folder C:\Windows\system32\drivers\etc\
  4. Start by right-clicking the mouse on the icon for the hosts file and in the context menu, select the item "Open".
  5. When choosing a program to open a file for help, select Notepad and press the OK button.
  6. Take a look at the file and delete everything from the new one.
  7. If there are two hosts files in the folder, it means that one of them is pardoned. To find the reference, you need to open the offending files. The one who will have additional records shown will be correct.
  8. After clearing the hosts file, delete the pardon file and re-create invisible attached files.
After editing the hosts file in Windows XP, in order to change the ranks, you may need to restart the computer. Seniors Windows versions vikonanі change zastosovuyutsya odrazu.

In some situations, you may need to change the hosts file in Windows 10, 8.1 or Windows 7. Sometimes the reason is viruses and malware programs that make changes to hosts, through which you can not go to other sites, and sometimes you yourself may want to edit the file in order to obmezhiti access to any site.

These instructions report about how to change hosts in Windows, about ways to fix the file and turn it to the start, I will become a help system for additional third-party programs, as well as some additional nuances that can be corrected.

A lot of third-party programs for fixing problems of robots and networks, customizing Windows otherwise, you can delete shkіdlivih programs and change the ability to change it, or you can repair the hosts file. I'll give you two examples. cost-free program DISM++ for customization Windows functions 10 s bagatma additional functions at the Dodatkovo branch, there is an item "Editor hosts".

All you need to do is launch the same notepad, but with the rights of an administrator and open the required file. Koristuvachevi will no longer make changes and save the file. Report about the program and de її zavantazhit have statti.

Vrakhovuyuchi those that carelessly change the hosts file sound as a result of the work of shkіdlivih programs, it is logical that you can take care of them and the functions of repairing this file. This option is popular boneless scanner AdwCleaner.


It is enough to go into the settings of the program, select the item “Skip the hosts file”, after which the scan is cleared on the main tab of AdwCleaner. The process will also have its hosts corrected. Reporting about qiu and other programs in sight.

Create a shortcut to change hosts

If you often need to edit hosts, you can create a shortcut that automatically starts notepad with with a file in administrator mode.

For whom to click with the right button of the bear in be-yak free city working table, select "Create" - "Yarlik" and enter in the field "Specify object rostering":

notepad c:\windows\system32\drivers\etc\hosts

Let's type in "Dali" and say the name of the yarlik. Now, right-click on the created shortcut, select "Power", on the tab "Shortcut" press the button "Dodatkovo" and indicate that the program was launched as the administrator's name (otherwise we can't save the hosts file).

I spodіvayus, for whom іz chitachіv іnstruktsіya vyavivatsya korisnoy. If you don’t want to go out, describe the problem in the comments, I will try to help. Also on the site there is an organic material: .

The hosts file should be filed in a different place operating system Windows. This file becomes the number one target, which is practical for all viruses and trojans that can infect a computer. In this article, we will tell you about those who have such a hosts file, de vin know, navіscho yogo vikoristovuyut і yak yogo know after the infection of the computer with viruses.

The task of this file is to save the list of domains and the ip-address corresponding to them. The operating system will change the list for converting domains to ip-addresses and navpacks.

Shorazu if you enter into address row browser address is necessary for your site, it will ask for a domain conversion to an ip-address. Narazі tse transformation vykonuє service under the name DNS. Ale, on the cob to the development of the Internet, the hosts file can be connected to a single symbol of the name (domain) with a specific ip-address.

Navit at once, dani file May be without intermediary infusion of the transformation of symbolic names. If you add an entry in the hosts file, if you will show the ip-address of the domain, then such an entry will be good practice. The same tsim and koristuyutsya rozrobniki vіrusіv, trojanіv and other shkіdlivih programs.

As for the structure of the file, the hosts file is a typical text file with a wide extension. This file is not called hosts.txt, but simply hosts. For editing, you can use the usual text editor Notepad (Notepad).

The standard hosts file is composed of a number of rows, which start from the “#” symbol. Such rows are not protected by the operating system and are simply comments.

The standard hosts file also has the entry "127.0.0.1 localhost". This entry means that if you navigate to the symbolic name localhost, you will be converted to your own computer.

Fraud with the hosts file

There are two classic ways to take advantage of changes made to the hosts file. First of all, you can help block access to sites and servers of anti-virus programs.

For example, by infecting a computer, the virus adds the hosts file has the following entry: "127.0.0.1 kaspersky.com". When you try to open the site kaspersky.com, the operating system connects to the IP address 127.0.0.1. Obviously, the ip-addresses are wrong. Tse cause beforeaccess to this site will be blocked again.As a result, the infected computer cannot recover the anti-virus or update the anti-virus databases.

Krіm tsgogo, retailers can vicoristovuvat th іnshiy priyom. By adding entries to the hosts file, the stench can redirect coristuvachs to the detail site.

For example, after infecting a computer, the virus adds the following entry to the hosts file: "90.80.70.60 vkontakte.ru". De "90.80.70.60" is the IP address of the attacker's server. As a result, when you try to go to all the other sites, the koristuvach visits the site and looks just like that, but is on someone else's server. As a result of such actions, logins, passwords and other personal information of the correspondent can be taken away.

So, in case of any suspicion of being infected with a virus, or in order to replace sites, it is necessary to check the HOSTS file beforehand.

Where to find the hosts file

Fallen by operating system version windows file hosts can be hosted in different folders. For example, as if you victorious Windows XP, Windows Vista, Windows 7 or Windows 8, then the file is located in the folder WINDOWS\system32\drivers\etc\.

For Windows NT and Windows 2000 operating systems, this file is located in the folder WINNT\system32\drivers\etc\.

In older versions of the operating system, for example, in Windows 95, Windows 98 and Windows ME, this file can be found simply in the WINDOWS folder.

Update to hosts file

A lot of koristuvachiv were recognized by an evil clown, where it is possible to capture the hosts file. However, searching and capturing the original hosts file is not necessary. Yogo can be corrected independently, for which it is necessary to vodkriti text editor and delete all crim row crim "127.0.0.1 localhost". Allow unblocking access to all sites and update antivirus.

Let's take a closer look at the process of updating the hosts file:

  1. Open the folder where the file is located. In order to avoid bluffing with catalogs for a long time required folders you can speed up with a little cunning. Press the key combination Windows + R in order to open menu "Vikonati". At the window, enter the command "%systemroot%\system32\drivers\etc" and press the OK button.
  2. After that, a folder appears in front of you, in which the hosts file is located, rob backup copy stream file. On the flip side, as if it were not so. To use the hosts file, simply rename it to hosts.old. If the hosts file is not in my folder, then you can skip this item.
  3. Create a new empty hosts file. For whom, right-click the bear in the folder etc and select the item "Create a text document".
  4. If the file is created, you need to rename it to hosts. If you change the name, it will show up automatically, so that you will have a warning about those that the file will be saved without extension. Close the window from the front by pressing the OK button.
  5. Once a new hosts file has been created, it can be edited. For this, open the file for the help of the Notepad program.
  6. Depending on the version of the operating system, instead of the standard hosts file, you can change it.
  7. For Windows XP Windows Server 2003 need to add "127.0.0.1 localhost" .
  8. Windows Vista, Windows Server 2008, Windows 7 and Windows 8 need to add two rows: "127.0.0.1 localhost" and "::1 localhost".

© 2022 androidas.ru - All about Android