the Internet Windows Android

Ho file. Original Hosts for Windows operating systems

Very often, or after a viral attack, after which, for example, a social network for restoring access to your page, or after unsuccessful editing, you have to restore the default contents. To do this, you need to know what the contents of the original HOSTS file. The situation is complicated by the fact that in each operating system from Microsoft Corporation, it is different, although the main thing remains the same. Below is the original contents of the Hosts file for some of the currently popular operating windows systemsthat I list in descending order of their popularity (I personally believe that the most popular system is the most new system. Who believes that Windows XP is immortal, and Windows 7 is the best Microsoft creation, it seems to me with people who are registered in development. I do not want to offend anyone, I will only glad to hear that I am not right).

For those who do not know, the hosts file is used to broadcast domain names to networks. More than O. this file It is written in the article, the reference to which I brought a little higher.

Original Hosts in Windows 8


#

#




# Space.
#


#
# FOR EXAMPLE:
#
# 102.54.94.97 Rhino.acme.com #Source Server
# 38.25.63.10 x.acme.com #x client host

# 127.0.0.1 Localhost
- 1 Localhost
127.0.0.1 Localhost.

Original Hosts file in Windows 7

# Copyright © 1993-2009 Microsoft Corp.
#
# This is a sample hosts file Used by Microsoft TCP / IP for Windows.
#
# THIS File Contains The Mappings of IP Addresses to Host Names. Each.
# Entry Should Be Kept On An Individual Line. The IP Address Should
# Be Placed in The CorreSponding Host Name.
# The IP Address and The Host Name Should Be Separated by At Least One
# Space.
#
# Additionally, Comments (Such As These) May Be Inserted on Individual
# Lines or Following The Machine Name Denoted by A '#' Symbol.
#
# FOR EXAMPLE:
#
# 102.54.94.97 rhino.acme.com # Source Server
# 38.25.63.10 x.acme.com # x client host
# Localhost Name Resolution Is Handled Within DNS ItSelf.
# 127.0.0.1 Localhost
- 1 Localhost

Orinal Hosts file in the Windows Vista operating system

# Copyright © 1993-2006 Microsoft Corp.
#

#




# Space.
#


#
# FOR EXAMPLE:
#


127.0.0.1 LocalHost: 1 Localhost

Original Hosts in Windows XP

# Copyright © 1993-1999 Microsoft Corp.
#
# This is a sample hosts file Used by Microsoft TCP / IP for Windows.
#
# THIS File Contains The Mappings of IP Addresses to Host Names. Each.
# Entry Should Be Kept On An Individual Line. The IP Address Should
# Be Placed in the Corresponding Host Name # Be Placed In The First Column Followed by the CRESPONDING HOST NAME
# The IP Address and The Host Name Should Be Separated by At Least One
# Space.
#
# Additionally, Comments (Such As These) May Be Inserted on Individual
# Lines or Following The Machine Name Denoted by A '#' Symbol.
#
# FOR EXAMPLE:
#
# 102.54.94.97 rhino.acme.com # Source Server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 Localhost.

Using the templates given, you can easily replace the current contents of the Hosts file to its original content. In addition to the files, I would like to clarify a little that there is something. The main contents of the original HOSTS file in Windows are a commented manual to use this file on english language. In addition to describing the HOSTS file functionality, there are also various examples of using it for its intended purpose. And if you still have not figured out, where comments are, and where is the functional part of this file, then Meet: Sign # is an special symbolwhich means that everything that is on this line after this sign is comments. And this means that almost in all original Hosts files really work part is the last line indicating the loop interface, which is one of and indicate the computer itself. And on the basis of this, you can completely remove from the Hosts file all comments without losing its working capacity. That is why the title of the article - Original Hosts file in Windows, but not Correct Hosts for Windows. After all, the right HOSTS file will be any Bebered like this:

# Before you the rightest of all
# The most right hosts files, which
# ever existed on computers
# on which ever was installed
# operating system from the famous
# Microsoft Corporation!
127.0.0.1 Localhost.
# As you can see, comments everywhere!
# And here,
# and there. But from this file hosts
# Does not get wrong!

The hosts file is responsible for setting the match between the domain and the site IP address. Accessing the host has a priority before sending a request to the DNS server, and the file is stored on the computer and is controlled by the administrator, which makes it an important element safe windows work. In some cases, users have the need to restore the Hosts file to initial state. Remove unnecessary entries from it in two ways: manually and automatically using special software.

Manual recovery

Usually the recovery of the HOSTS file is required after the validity of the malicious applications adding new records to it. Typical attack looks like that: You open classmates or VKontakte, and the site reports that the account is blocked, and asks to send SMS to confirm the entrance. As a result, money from the phone is removed, and then you will find out that instead of VKontakte, the Hosts file redirected you to a fake page.

But the host here has nothing to do with: he only turned out to be a tool in the hands of a malicious software. Therefore, after cleaning Windows Antivirus. Need to restore Hosts.

Another option is to go to C: \\ Windows \\ System32 \\ Drivers \\ ET and simply open Hosts through the Notepad. Inside you will see a lot of text in English. You need to make sure that you have no extra records in the host. By default, the text should end with the "# :: 1 Localhost" string. All that after it should be removed, especially if you did not fit anything into the file.

However, such cleaning may be incomplete, so it is highly recommended to relate the contents of your host with the data specified on the support page at https://support.microsoft.com/ru-ru/kb/972034. On Windows 7, the contents of Hosts should look like this:

So that no extra entries are not exactly, delete the old host and create a new file:


Now the old host will not act, and there will be nothing too much extra extra, so you can not worry about the safety of money and personal data.

Automatic recovery

If a manual recovery It seems difficult, you can fix the host using special utilities. For example, technical support Microsoft in the article about correcting the Hosts file on different versions Windows offers to download the Fix IT utility, after starting which unnecessary records will be deleted without user participation.

Another way is to use AVZ anti-virus program. This is a powerful research tool and windows restorationBut we will consider only one of its feature - the HOSTS file.

Hello everybody! Yesterday I spent the whole evening in Skype, helping to solve a friend, why he does not open VKontakte. The answer was lying almost on the surface, but as it usually happens in such cases, we did not notice it stubbornly. The whole chip was that a friend, working on his site in Denver, opened a contact (with the Denver running, respectively), after which turned off the computer without turning off the Denver. And as a result, in the Hosts file, VKontakte was recorded with local IP. Therefore, today, having imagined a minute, I decided to write another post, byienting his Hosts file. In this article we will talk about what makes the Hosts file, for which it needs, how to find it, how to edit and save. Also, at the bottom of the article, you can download the HOSTS file. I will try to describe everything by a simple human language, to understand it was possible to even an amateur, not particularly disassembled in computers.

WhathOSTS?The hosts file is a text file on your device having an Internet access (computer, smartphone, etc.). The hosts file contains the domain name database. Each time you write in your browser, one or another site address is initially a request to the Hosts file, and then only enters the DNS access (external servers on the Internet). And if you prohibit one or another address in the HOSTS file, then it will be impossible to access it from this computer. Here, perhaps, all that makes the Hosts file.

How to find a filehOSTS?HOSTS file in different operating systemsah lies in different places. Below I give a table as it can be found in the most popular OS

All that below, until the next paragraph, is dedicated to those who do not know what to do with this table. And so, if for you this is a diploma, written in Chinese, then, most likely you have Windows. Here, on the basis of this OS, I will explain how to find the Hosts file.

Go to my computer. Click on the address bar (watch screenshell) and insert there this phrase: C: \\ Windows \\ System32 \\ Drivers \\ etc. This is the way to the Hosts file. Then press ENTER.

We fall into the system folder. Find a HOSTS file. Everything! You can congratulate yourself, you are a computer genius! 😉

If you have problems, or you have a different axis, and you do not know what and how to do, then write in the comments, I will be happy to answer. And we go further.

How to open file.hOSTS? Since we have found the HOSTS file, now it must be somehow open. This is not something difficult. Hosts opens with any text editor. I use NotePad ++, but you can open anyone else. Even a regular notebook, the default is built in Windows.

What should be in the HOSTS file?Nothing extra. And if seriously, the clean Hosts file should look like this:

# Copyright (C) 1993-2009 Microsoft Corp. # # This is a sample hosts file Used by Microsoft TCP / IP for Windows. # # This File Contains The Mappings of IP Addresses to Host Names. Each # Entry Should Be Kept On An Individual Line. The IP Address Should # Be Placed in the CorreSponding Host Name. # The IP Address and The Host Name Should Be Separated by At Least One # Space. # # ADDITIONALLY, COMMENTS (Such As These) May Be Inserted on Individual # Lines or Following the Machine Name denoted by A "#" Symbol. # # For example: # # # # # For example: # # 102.54.94.97 rhino.acme.com # Source Server # 38.25.63.10 x.acme.com # X Client Host # Localhost Name Resolution Is Handled Within DNS ItSelf. # 127.0.0.1 Localhost # :: 1 Localhost

If you are crying in English, the way you see, in the file itself it is written in detail what makes the Hosts file, which should be in it and how to change it. I also want to remind you that at the end of the article you can download the HOSTS file, so there is no need to copy it from here.

But, what you will see this file is little likely. Most likely, in your HOSTSBC and other stroks. For example, if you use Adobe products, then at the end you will find something like:

127.0.0.1 adobe-dns.adobe.com 127.0.0.1 adobe-dns-2.adobe.com 127.0.0.1 adobe-dns-3.adobe.com

And now, go to the most interesting:

Editinghosts.. And so, now we will learn how to change the Hosts file. To begin with, let's understand what they mean certain characters in it. It is very easy, at the first class level (I have a student in the second class, it edits this file once or two).

All that is indicated by the "#" sign is comments. We do not take into account them. Those. You can put "#" and write all that you want. This will not be taken into account by the computer. But as soon as you go to a new line, if you again do not put "#", the computer will start to take into account your string. Let's, again, the line where "#" stands is a comment, and is not taken into account by the computer.

The desert string in hosts is ignored. You need to put them only for your convenience, so that it would not be confused.

Figures 127.0.0.1 is a local IP address. What is iPadress, it is necessary to write this whole article. Therefore, now we are important to remember that any Internet address standing after 127.0.0.1 will be ignored, and you cannot get access to it on the Internet.

For example, having a line type:

127.0.0.1 Google.ru.

You will not be able to go to google search engine. Thus, you can prohibit access to any site, just entering the unwanted site URL after the local IP address.

These lines need to enter the end of the file. Everyone new address The site should begin with a new line.

Sometimes it happens that some programs change this file, mostly these virtual servers or viruses. But if the virtual servers return hosts after their closure, the viruses are maliciously edited hosts. In any case, the result is one: you can't get to a particular site. Therefore, if you can't access to any site, check the HOSTS file, it may be prohibited in it.

Now I will reveal one terrible secret. Often at work block social networks and some other sites. Often, Ay Tishnikov put the blocking exactly described above. But, you already know how to change the Hosts file 😉

By the way, if you want to prohibit your child access to specific sites, you can easily edit the HOSTS file by specifying the addresses of undesirable resources. As a result, the HOSTS file will have the following form:

# Copyright (C) 1993-2009 Microsoft Corp. # # This is a sample hosts file Used by Microsoft TCP / IP for Windows. # # This File Contains The Mappings of IP Addresses to Host Names. Each # Entry Should Be Kept On An Individual Line. The IP Address Should # Be Placed in the CorreSponding Host Name. # The IP Address and The Host Name Should Be Separated by At Least One # Space. # # ADDITIONALLY, COMMENTS (Such As These) May Be Inserted on Individual # Lines or Following the Machine Name denoted by A "#" Symbol. # # For example: # # # # # For example: # # 102.54.94.97 rhino.acme.com # Source Server # 38.25.63.10 x.acme.com # X Client Host # Localhost Name Resolution Is Handled Within DNS ItSelf. # 127.0.0.1 Localhost # :: 1 Localhost 127.0.0.1 enter the address of the site you want to ban 127.0.0.1 enter the address of the site you want to ban 127.0.0.1 enter the address of the site you want to ban

Everything, after we edited the Hosts file, we can safely save it.

If you are editing an existing file, save the hosts to the usual document. For example, a combination of Ctrl + S buttons or file -\u003e Save.

Changes in the HOSTS file in the Windows operating system can cause problems when installing, updating and starting games. HOSTS file is system file. Windows having priority over DNS, which redirects the URL or IP address. As a rule, the usual user does not need to make changes to this file.

Check file for changes

  1. Press the key combination Windows + R..
  2. Enter OK..
  3. Open hosts file Using a text editor, for example, notepad. This file has no definite expansion.
  4. Compare the contents of your file with the designated Microsoft standard contents shown below. If the content is different, it means that it has been changed. Delete all the lines in which the BLIZZARD addresses are specified.
  5. Save the file.

Note: If the contents of the HOSTS file has been changed, run the virus check. Malicious programs Can change the contents of the file to redirect connections from your computer to malicious sites.

Common changes that cause malfunctions

Here are examples of the most common changes that adversely affect the work of Blizzard games. If you find the lines data in your Hosts file, delete them:

  • 127.0.0.1 EU.ACTUAL.BATTLE.net.
  • 127.0.0.1 us.actual.battle.net.
  • 127.0.0.1 ENGB.NYDUS.Battle.net.

Restoring the default settings assigned to Microsoft for the HOSTS file

To restore default settings for the HOSTS file, follow these steps:

  1. Press the key combination Windows + R..
  2. Enter notepad. In the "Run" window.
  3. Click OK..
  4. Copy the following text in Notepad: # Copyright (C) 1993-2006 Microsoft Corp. # # This is a sample hosts file Used by Microsoft TCP / IP for Windows. # # This File Contains The Mappings of IP Addresses to Host Names. Each # Entry Should Be Kept On An Individual Line. The IP Address Should # Be Placed in the CorreSponding Host Name. # The IP Address and The Host Name Should Be Separated by At Least One # Space. # # ADDITIONALLY, COMMENTS (Such As These) May Be Inserted on Individual # Lines or Following the Machine Name denoted by A "#" Symbol. # # For example: # # 102.54.94.97 rhino.acme.com # Source Server # 38.25.63.10 x.acme.com # X Client Host # Localhost Name Resolution Is Handle Within Dns Itself. # 127.0.0.1 Localhost # :: 1 Localhost
  5. On the menu File Select the option Save as, enter "hosts" (including quotes) in the row File nameAnd then save the file to the desktop.
  6. Rate the key combination again Windows + R..
  7. Enter % Windir% \\ System32 \\ Drivers \\ etc In the "Run" window and click OK..
  8. Rename Hosts file to "hosts.old".
  9. Copy or move your hosts file you created from the desktop to the% Windir% \\ System32 \\ Drivers \\ ETC folder. If you are prompted to enter an administrator password, click Proceed.

Many ordinary and slightly advanced users of computers have used them for many years and did not suspect the existence of a file named hosts.not having a surname (i.e. extensions).

But thanks to the viruses and non-idealness of the operating systems of the Family Family (Windows), users had to get acquainted with this "host", and, quite closely.



What is your HOSTS file?

In the Windows operating system (XP, Vista, 7, etc.) file hosts. Used to communicate (match) host names (nodes, servers, domains) with their IP addresses (Name Resolution). File hosts. - This is a simple text file that has no extension (even there is no point :)).

File hosts. Physically in the directory:

  • \\ Windows \\ System32 \\ DRIVERS \\ ETC \\ - for Windows 2000 / NT / XP / VISTA \\ 7
  • \\ Windows \\ - for old windows 95/98 / me

Most often, this directory is on disk C, so in this case it turns out the full path to the file hosts. Represents a sack:

By default, only one IP address must be specified in the normal hosts file. 127.0.0.1 . This IP Schnick is reserved for Localhost, that is, for your local PC. There should be no other addresses there!

File contents hosts. For Windows XP (Russian version of OS):



In text form, the contents of the HOSTS file for Windows XP can be copied from here:

# (C) Microsoft Corporation (Microsoft Corp.), 1993-1999
#
# This is a sample HOSTS file used by Microsoft TCP / IP for Windows.
#
# This file contains comparing IP addresses nodes names.
Each element should be located in a separate line. The IP address must
# To be in the first column, the corresponding name must follow.
The IP address and node name must be separated at least one space.
#
# Besides, comments may be inserted in some rows.
# (such as this line), they must follow the name of the node and separate
# from him symbol "#".
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # client knot x

127.0.0.1 Localhost.

File contents hosts. For Windows Vista (English version OS):

In text form, the contents of the HOSTS file for OS Windows Vista. You can copy from here:

# Copyright (C) 1993-2006 Microsoft Corp.
#

#




# Space.
#


#
# FOR EXAMPLE:
#


127.0.0.1 Localhost.
:: 1 Localhost



File contents hosts. For Windows 7 (English OS):

In text form, the contents of the HOSTS file for Windows 7 can be copied from here:

# Copyright (C) 1993-2009 Microsoft Corp.
#
# This is a sample hosts file Used by Microsoft TCP / IP for Windows.
#
# THIS File Contains The Mappings of IP Addresses to Host Names. Each.
# Entry Should Be Kept On An Individual Line. The IP Address Should
# Be Placed in the Corresponding Host Name # Be Placed In The First Column Followed by the CRESPONDING HOST NAME
# The IP Address and The Host Name Should Be Separated by At Least One
# Space.
#
# Additionally, Comments (Such As These) May Be Inserted on Individual
# Lines or Following The Machine Name Denoted by A "#" Symbol.
#
# FOR EXAMPLE:
#
# 102.54.94.97 rhino.acme.com # Source Server
# 38.25.63.10 x.acme.com # x client host

# Localhost Name Resolution Is Handled Within DNS ItSelf.
# 127.0.0.1 Localhost
# :: 1 Localhost

Use Hosts File

File hosts. Theoretically, you can use to speed up work on the Internet and reduce traffic. This is implemented by reducing requests to the DNS server for frequently visited resources. For example, if you use every day search engines Yandex and Google (sites http://yandex.ru. and http://google.ru. Accordingly), it makes sense in the file hosts. After the line " 127.0.0.1 Localhost."Write the following lines:

93.158.134.11 Yandex.ru.

209.85.229.104 Google.ru.

This will allow your Internet browser not to access the DNS server, and immediately establish a connection to sites yandex.ru. and google.ru.. Of course, such tricks are currently few people do, at least because of good modern access rates.



Restrictions with Hosts File

Some advanced comrades sometimes use a hosts file to block unwanted Web resources (for example, erotic content - for children, until they grade and did not become smarter than you in computer relation). For this you need after a line 127.0.0.1 Localhost. Also added a string or several lines:

127.0.0.1 The address of the blocked resource-1

127.0.0.1 addressblocked resource-2

127.0.0.1 addressblocked resource-3

for example:

The essence of this record is that the specified locked resource will now map the browser with the IP address 127.0.0.1 which is the address local computer- Accordingly, the forbidden site will simply not be loaded.

Often this feature is used computer viruseswho add to the Hosts file the desired redirection attackers for browsers:

Most often, redirection is made on the "left" site, visually not different from the present resource, while the user has login and password (he himself enters into allegedly real sites of the site) or simply write that your account is blocked (supposedly for spam and other ), Pay money or send an SMS (also very paid) to unlock. Simultaneously with the redirection on its website from sites social networks Malefactors are blocked using a file hosts. Access to antivirus software sites.

Attention! Never pay for it! And do not send SMS!

A cell phone can only be used as a password tool, unlock code. Those. Messages must come to you, and not come from you.



Although, if you do not feel sorry for money, please check with your cellular operator The cost of sending SMS to this number to accurately decide what you really don't feel sorry to just give to someone this amount.

How to edit hosts file

  1. Each element must be recorded in its (separate) line.
  2. The IP address of the site should begin with the first position position, behind it (in the same line), the corresponding host name must follow it through the gap.
  3. The IP address and node name must be separated at least one space.
  4. A row with comments should begin with a symbol #.
  5. If comments are used in domain name conformity lines, they must follow the name of the node and separated from it also the symbol # .

Hosts viruses and file

Malefactors so that their actions are not immediately detected, edit the file hosts. Sunny. Perhaps several options:

1. At the end of the file hosts. Added HIGHLY Many rows (several thousand), and addresses for redirection (most often found at the end) it is difficult to notice, especially if you view the contents of the file hosts. With the help of a notepad - a very wretched editor.

To view the content and edit file hosts. It is best to use text editorwhich shows the number of rows in the document, for example, NOTEPAD ++.

You also have to shoot pretty big size Hosts file, well, in normal condition it can not be more than a few kilobyte!

2. Edit the original hosts file, after which he is assigned an attribute " Hidden" or " Systemic", because by default hidden files And folders in Windows operating systems are not displayed. In folder C: \\ Windows \\ System32 \\ DRIVERS \\ ETC A file is created hosts.txt (by default for registered types of extension files is not displayed, and the system does not perceive the file hosts.txt, she needs only hosts.), in which or completely empty, or everything is written, as it should be in the present file hosts..

3. Similarly, as in the second version, only the attackers have already provided an option that the extensions for registered file types are displayed in the operating system (the user independently turned on). Therefore, instead of a file hosts.txt The virus creates a file hosts.whose letter " about"Russian, not English. Visually file looks like a real, but also not perceived by the system.

In this picture, the first file hosts. - Hidden, the virus introduced into it. Second file. hosts. - not real, it contains a Russian letter " about"In the title, most often this file hosts. Empty, viruses do not bother to copy content from the real file.

Restore Hosts file

If you identified similar changes to your file host.You need to restore everything to the initial state. To do this, do the following:

  • Disable real-time protection for your antivirus program, because many normal modern antivirusers (for example, Avira) are not allowed to make changes to the file hosts..
  • Open directory C: \\ Windows \\ System32 \\ DRIVERS \\ ETC
  • Enable Displaying Extensions for Registered File Types, Hidden and System Files.
  • Click on file. hosts. right mouse button and choose in context menu string " Edit WITEPAD ++":

If you are not installed text editor program NotePad ++, I recommend first to install it, and not to use notepad. If you do not have the Internet at the moment, or just laziness download NotePad ++, you can use and poor notepad for editing a file hosts..

To open the file hosts. Notepad you need to click on it with the left mouse button, will appear windows window with the message " Failed to open the following file ..." Set the switch to " Select a program from the list manually"Click OK.. In the window " Selection of the program"List find Notebook and press OK..

  • Edit the contents of the HOSTS file so that it becomes as indicated at the beginning of this article.
  • Save changes.
  • Activate the protection of the antivirus program (if disabled).
  • Run the browser and check the ability to view the desired sites.

The principle of operation of the HOSTS file

When the user dials the address (URL) of any site in the browser and presses ENTER, user browser:

  • Checks in the hosts file, whether the entered name entered its own name is (localhost).
  • If not, the browser is looking for the requested address (host name) in the HOSTS file.
  • If the host name is found, the browser appeals to the corresponding IP address specified in the hosts file.
  • If the host name is not detected in the Hosts file, then the browser appeals to the DNS detector cache (DNS-Cash).
  • If the host name is found in the cache, the browser appeals to the corresponding IP address stored in the DNS cache;
  • If the host name is not detected in the DNS sensor cache, the browser refers to the DNS server;
  • If the requested web page (site) exists, the DNS server translates the URL user-defined URL to the IP address;
  • The web browser loads the requested resource.