Almost all editions of Windows operating systems, there is one very interesting file whose name is hosts. And that's about it I'll tell you. This unremarkable-looking I've found operdelyaet ratio ip address and domain name. That is, dns is a mini system that works only on your computer and converts the IP-address to a domain name and vice versa. Accessing the file has priority before going to the dns server browser.
And I forgot to specify where he is file. The location of the hosts file on the system by default -% SystemRoot% system32driversect, where% SystemRoot% – System folder (usually C: Windows) and open it with notepad. Also, this way to the hosts file can be changed using the registry c Windows. The registry is a parameter responsible for the way him, DatabasePath, which is located in the key HKEY_LOCAL_MACHINESYSTEMControlSet001servicesTcpipParameters The syntax is very simple. Each association ip (there must be at least one space) domain name must be on a new line, the lines at the beginning of which is icon (#) are commented out and ignored by the interpreter. Well, now go directly to the practice. Add a file entry, for example, 216.239.59.104 google.ru, and now enter into your browser google.ru. The site loaded and This is because we specified ip, owned by google.
Now try this entry 213.180.204.11 google.ru. Well, now that you got instead of Google? Correctly, Yandex! Understand the essence? And also we can prevent a visit to our site computer, adding to the hosts file the line 127.0.0.1 porno.ru. Naturally the browser will throw an error because the browser will look for sites not on the internet and the computer. Managing these files, you can restrict access to certain sites at all – parents, Take you on a note – also, using this file, you can speed up the loading site, enter IP-address of the site you want. This allows the browser to access the web-server directly, bypassing the dns. This file also needs to know every webmaster, so as they often have to deal with it, developing the site on a local web-server. Unfortunately, in recent years this feature of Windows are increasingly used by hackers to redirect the user to create fake site to obtain data on which your account or site, or extort money through sms. More often victims of scams are becoming users of such social networks as Vkontakte and Meyl.Ru. But now you're in the subject and know how to get rid from this kind of squeezing money. Sometimes it is enough to remove the lines in the hosts file and put it right just to read. Good luck)