What does the file have? What is the hosts file?

Hello, friends!
In some situations it is necessary to change or update hosts file.

In this article, I recognize that there are no meanings and how to edit it correctly. I'll point my butt for help host file You can speed up, redirect or block access to certain sites.

The hosts file is special text file systems that provide for the redesign of symbolic domain names at the corresponding IP addresses and so on. The Internet site, in addition to the primary address, also refers to the IP address.

For example, the social network “Odnoklassniki” is aimed at www.ok.ru that IP address is 217.20.147.94. Before speaking, you can enter these numbers into the address bar of your browser and go, otherwise you will be redirected to www.ok.ru.

Please note that such domain addresses (www.ok.ru and others) were invented solely for the sake of reliability. Wait, it’s much easier to remember the symbolic name (domain) ok.ru, the lower IP address is 217.20.147.94.

However, the server (video computer), which is the site of ok.ru, does not accept such symbolic data. To change the host name to an IP address, the hosts file and a special domain name system (abbreviated as DNS) are used. Moreover, the hosts file has priority over DNS.

When you enter an address, your hosts file is first looked at, and then a link is made to the DNS server. On the DNS account, the hosts file can be edited directly.

I appreciate that you are now aware of the importance of the hosts file and understand why there is more Discount programs pragne otrimati yoma access.

Vickory to the hosts file

Using the hosts file, you can speed up access to certain sites or, for example, limit access to them. You can organize redirection from one site to another site. For example, if you use any resources, you will be redirected to the MBC website.

It’s a great danger that it’s becoming more difficult security software, if you have denied access to the hosts file, you will abuse it for your own evil purposes. For example, block access to websites, social media or websites with anti-virus software.

De-rotating the hosts file?

As a rule, if the operating system is Windows (NT, 2000, XP, 2003, Vista, 7, 8), the hosts file is modified system section on drive C. The full address looks like this: C:\Windows\System32\drivers\etc\hosts.

And more Swedish way go to the host file. For this purpose press the keys: Win + R or “Start” → “Windows”. A window for entering a command will open. Enter the command:

  • notepad %windir%\system32\drivers\etc\hosts

And the axis is the host file itself, which looks like this:

Since there is no hosts file in this folder, then, most likely, the virus has changed its settings in the registry key. Below is the registry key in which the path to the folder with the host file is registered:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters \DataBasePath

By the way, the hosts file may be damaged. For this option, go to “Folder Options” → “View” and set the value “Show attached folders files and disks.”

How to edit the hosts file?

The hosts file can be edited at any time text editor. For example, with a standard Windows notepad.

Let's take a look at the editing options first access is blocked to more sites: vk.com and ok.ru.

Site or site, before you need to block access, register in a new row, first enter the local IP address on the top of the row - 127.0.0.1 .

Our entry looks like this:

127.0.0.1 vk.com
127.0.0.1 ok.ru

Save the changes. Now we open the browser and try to go to the address vk.com or ok.ru. As you can see, the hosts file was created on the right and the attempt to connect to these sites did not work.

It is also possible redirect(create a redirect) to another site. For this purpose, you need to know the IP address of the site where the redirection will take place, and then, using a blank, indicate the domain from which the redirect will take place.

In the example below you can see that I first registered the IP address of the site yandex.ru (213.180.204.3), and through the pass I entered the domain vk.com.

This means that when you try to go to the site vk.com, you will be redirected to yandex.ru (213.180.204.3).

To speed up the popularity of your site, you need to know its IP address and domain. This data is registered in the hosts file.

It would seem that everything is simple: you need to register the necessary changes in the hosts file and click “Save”. Otherwise, the system is barking and does not allow you to save your valuables. More precisely, I recommend saving it to a separate text file.

This is enforced through the strengthening of security rules in the OS remaining versions, and in this sense, there are a lot of viruses trying to register their rows here. Whenever changes are made by us, we try to do so directly.

It is necessary to do this. Turn back to the place where you can uninstall the hosts file right key mishi click on context not menu, de select the item "Vlastivosti".

Go to the “Security” tab and select the merchant under whom you work.

Beware of the warnings about the reduction in the level of security. Turn around and save the change.

There is an easy way to edit the hosts file using the command line. You can read it.

To update the settings in the hosts file following the instructions, simply copy and paste the text below:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This file HOSTS file used by Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically 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

It’s so easy and just by editing the hosts file you can block access to sites or create a redirect. That's all for today.

In the next article, I will tell you how to edit the hosts file if Windows is blocked. Besides this, I’m guessing from popular questions: “Why can’t I go to Odnoklassniki?”, “Why can’t I go to VKontakte, mail and other sites?” Subscribe and do not miss the publication of this article (the article has already been published, you can read it).

Quite often, either after a virus attack, after, for example, a social barrier to update access to your page, or after a recent edit, you have to follow the promotions. To earn money, you need to know what kind of place original file hosts. The situation is complicated by the fact that in each operating system from the Microsoft corporation there is a difference, but mostly without unnecessary costs. Below is the original one instead of the hosts file for some popular ones operating systems Windows, which I will list in order of changes in their popularity (I especially respect that the most popular system is the most popular new system. Although it matters that Windows XP is immortal, and Windows 7 is Microsoft's greatest version, it is less popular among people who have experienced development. I don’t want to convince anyone, I’ll just feel like I’m wrong).

For those who don’t know, the Hosts file is used to translate domain names in Merezheva. A report about this file was written by the State Statistics Service, sent to me for a little more time.

Original Hosts for 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 for Windows 7

# Copyright © 1993–2009 Microsoft Corp.
#
# This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically 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

The original 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 file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically 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

By using the following templates, you can easily replace the current one in the Hosts file with your original one. After pointing out the files, I’d like to clarify a little bit about what’s going on here. The main one instead of the original Hosts file on Windows is the manual from the corresponding file on English. I will also describe the functionality of the Hosts file, here we also point out various applications for the purposes of this application. And if you have not sorted out all the files, where are the comments, and what is the functional part of the file, then you know: the sign # є with a special symbol, which means that everything that is on this row of the last sign is the comment. This means that all original Hosts files have an active working part - the remaining row is assigned to the loop interface, which also points to the computer itself. Based on this, you can completely delete all comments from the Hosts file without wasting any time. The very name of this is statistics Original hosts file for Windows, not Correct Hosts for Windows. Also, the correct Hosts file will be the whitebird on the page:

# In front of you is the best one from all of us
# most correct Hosts files, which
# whenever you sleep on computers
# on any occasion it is installed
operating system in view
Microsoft Corporation!
127.0.0.1 localhost
# Like you say, don’t comment!
# I here,
# and there. What is the hosts file?
# doesn't become wrong!


The hosts file establishes the identity between the domain, website and IP server. Instead, the file can be edited by the computer administrator.

To put it simply, you can always verify which file you have, block access to certain sites, and allow access to others. That's why Denmark file Virus software is often used to block popular sites, usually popular resources: social measures, sound systems, etc.

We have downloaded this file at the address: C:\Windows\System32\drivers\etc . For a quick transition you can press "Start" - "Viconati" , enter the command %systemroot%\system32\drivers\etc and press OK.

The axis looks like this in standard mode, without blocking any websites.

In order to block any site, all you need to do is add a simple line to the file: 127.0.0.1 sent to the site " For example, in the photo below I blocked the site google.ru.

Yak turn adjustments in advance.

To update this file in any mode, you need to open this file in Notepad as an administrator and view the application rows, save the file in that place, and extension, then. as it was before. The easiest way is to open the file yourself in administrator mode through the command line. Why, press right button Click on the lower left corner of the screen, where the start button is located, and select the item “ Command line(Administrator)."

In the window that opens, enter the text: “notepad C:WindowsSystem32driversetchosts” and click the entry. Once the file has opened, you can make changes and save them.

If you don't see any rows that need to be deleted, then simply delete all the text from the file, copy and paste the text below.

# Copyright 1993-2009 Microsoft Corp.
#
# This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically 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

Is the Hosts file needed?
Nominated system file- Assigning song IP addresses to song sites.
This file is susceptible to all kinds of viruses and malware in order to register it in your data or simply replace it.
The result of these actions may be “paste” signs for the site in browsers, which require you to send an SMS when the browser is open, or blocking of various sites, at the discretion of the virus creators.

Where is the Windows hosts file located?
For different versions Windows OS has modified the hosts file a little differently:

Windows 95/98/ME: WINDOWS\hosts
Windows NT/2000: WINNT\system32\drivers\etc\hosts
Windows XP/2003/Vista/Seven(7)/8: WINDOWS\system32\drivers\etc\hosts


Moreover, it’s over hosts, which is already an end file, not a folder. There is nothing in it.

How can I look correct file hosts?
“Instead” of the hosts file, it’s just a little different for different windows versions but not especially. It is “written” in English for what it is needed and how to work out the blame from the points of one butt. All lines that begin with a # sign mean that they are commented out and do not appear in the file.
Substitution of the original hosts file for Windows XP:


#

#




#Space.
#


#
# For example:
#



127.0.0.1 localhost


Substitution of the original hosts file for Windows Vista:

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically 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::1 localhost


Substitution of the original hosts file for Windows 7:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically 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


Replacing the original hosts file for Windows 8:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically 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


How you can reconnect, instead of the host file for different versions of Windows, there are no special features.

How to open and change the hosts file?
The hosts file can be standard Notepad Windows.
The axis is here, perhaps, itself tsikava partina statti.
We need to understand first, but are you planning to change this file? So, to block access to other sites. In this way, having changed this file and registered it in a new address on the site, the client will not be able to access it via .
In order to change the hosts file, you must open it as administrator (), right-click on the file and select "Run as administrator". Or open Notepad this way and then open the file.

For quicker action, you can simply press the Start button and select Viconty ( win+r) () and enter the following row:

notepad %windir%\system32\drivers\etc\hosts



As a result, this file will open in Notepad.

In order to block access to the site(for example, it will be test.ru), you just need to add the row with this site to the very bottom:

127.0.0.1 test.ru


As a result, the file will be like this:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
#
# Map this file mappings IP address to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column by the corresponding host name.
# The IP address and host name should be separated by at least one
#Space.
#
# Additionally, comments (such as these) can be inserted on individual
# lines or following the machine name specifically a "#" symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# This is the HOSTS file of the creations for the Dr.Web Anti-rootkit API

#127.0.0.1 localhost
# ::1 localhost
127.0.0.1 test.ru


If you want to block a new site, you need to start from a new row and register it without forgetting the local IP address 127.0.0.1

Also, to edit the hosts file, there is a program HOSTS EDITOR, enchant and read the description is possible from.
The principle of its operation is that it helps edit the hosts file.
This screenshot is based on the most intelligent principle of the robot, everything can be done in a couple of clicks. The addition is made by pressing the way on +.


After editing, do not forget to press the save button (2nd “Save changes” button, left-handed from the “+” button).

You can also change this file for good purposes, for example speed up the site's popularity.
How does this work?
When you visit the site, you read it domain name What does literature mean? All websites on the Internet are assigned to an IP address, and their names are assigned to DNS wikis. I won’t go into detail about this process, it’s not about that. But here you need to know that the hosts file has priority when downloading to sites, and only after that it will be asked to DNS.
In order to speed up the popularity of a site, you need to know its IP address and domain.
The IP address of the site can be obtained from other services, for example, or.
Domain is the name of the site.
For example, a very popular site on which you read an article has clearly entered the IP address and domain into the file.
So, what you get is:

91.218.228.14 website


This will speed up browsing the page in a couple of seconds, and sometimes you can give access if in standard ways You can't access the website.

Still possible redirect to another site for additional hosts file.
For this purpose it is necessary to know the IP address of the site and its domain (as in the above-described form), then the sequence that is obtained will be as follows:

91.218.228.14 test.ru


And now, after entering test.ru into the address bar of your browser, you will be redirected to the site with the IP address entered.

Whatever you want clean the hosts file, then you can do it by simply viewing it instead and inserting it into the new original text, with more descriptions (under spoilers).

Some nuances of the hosts file:

  • Always check what you have on the side and always scroll down the window. This is due to this, the virus is registered in the area captured between the windows.
  • In some cases, if you are unable to save the file, you need to go to cloud record Administrator.
  • Otherwise, this file may be stolen through viruses. Read the article.
  • In the two described methods (redirection and acceleration), you may not see the desired result. On the right, there can be several sites on one IP address, which is especially true for external IP addresses that provide services.
  • Due to the fact that viruses love a particular file, its attributes can be changed Prikhovanyі Easy to read.
  • Change the file attributes if you do not want to save the hosts file.

    In this way, you can easily and costlessly block access to sites on Windows by editing the hosts file.

  • In whose lesson we are looking for what hosts file It is necessary to know how to change it and what fault is to be blamed in normal conditions.

    Hosts file- a typical file that contains a list of IP addresses that are included with site names.

    It is a local DNS server that tells you where to go to the computer when you enter your address into the browser. Below you can edit the butt of such a file.

    The hosts have only one IP address registered for them (127.0.0.1), which is assigned to your computer.

    When we enter the address of a site in the address bar of the browser, the first site is visited, the computer immediately expands to the hosts file, wonders what addresses are in the list, and then expands to the DNS servers on the Internet. On account of the servers, the file is controlled by us ourselves. If there is no address in the file, then the DNS servers and the site are downloaded, and if the file has a record, the computer will look up which IP address will be created.

    Hosts can be used to block access to Internet resources. For this we add a new row after the row 127.0.0.1 localhost:

    127.0.0.1 site_address

    Website addresses are set to the IP address of the computer and are not affected by this.

    Below are the specifics of editing the hosts file:

    Kozhen's record is guilty of being on the edge of the row;
    - IP addresses are listed first;
    - IP and addresses of the site are to be separated, at least with one pass;
    - The lattice symbol # on the cob of the row allows you to comment, then. earn money so that you don’t work hard.

    It’s even more common for file hosts to be abused by malicious people. The virus alters or edits the file so that when you type the correct address, it opens not the original site, but the malicious site, which is even similar to the real one. Crime redirection may result in blocking if shareholders simply block access to the site.

    Where do you know the hosts?

    Now let's find out Where are the hosts?. Know hosts you can use the address:

    C:\Windows\System32\drivers\etc

    The presentation is mostly relevant for the Windows operating system. For other OSes, these paths may differ.

    The file version can be changed in the registry
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\DataBasePath

    How to change the hosts file.

    The hosts file does not have an extension, so you won’t be able to open it by simply clicking on a new door with the left mouse button. Click on it with the right mouse button and select the item “Help for help”.

    How to look at the hosts file.

    Below are presented original texts hosts files for various operations Windows systems. This is a replacement for the file for promotional purposes.

    Windows XP

    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    #
    # entry should be kept on an individual line. The IP address should

    #Space.
    #

    #
    # For example:
    #
    #102.54.94.97 rhino.acme.com
    # source server
    127.0.0.1 localhost

    Windows Vista

    # Copyright (c) 1993-2006 Microsoft Corp.
    #
    # This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
    #
    # Map this file mappings IP address to host names. Each
    # be placed in the first column by the corresponding host name.
    # The IP address and host name should be separated by at least one
    #Space.
    #
    # Additionally, comments (such as these) can be inserted on individual
    # lines or following the machine name specifically a "#" symbol.
    #
    # For example:
    #
    # 38.25.63.10 x.acme.com # x client host

    127.0.0.1 localhost
    ::1 localhost

    Windows 7

    # Copyright (c) 1993-2009 Microsoft Corp.
    #
    # This file is the same as the HOSTS file for Microsoft TCP/IP for Windows.
    #
    # Map this file mappings IP address to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column by the corresponding host name.
    # The IP address and host name should be separated by at least one
    #Space.
    #
    # Additionally, comments (such as these) can be inserted on individual
    # lines or following the machine name specifically 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

    Finally, I would like to talk about how to ensure that you change hosts. Of course, in the first place, antivirus. Be sure to use them and support the current base. Also, recently I wrote about a program called Browser Manager. This allows you to confirm and accept changes to the file without your participation. Well, definitely do not install unverified programs and do not run strange files.

    If you have a problem with nutrition, then make them obligatory.

    In this lesson I will try to convey to you what it is and how to learn it.