Modify the Hosts file to get three special magical effects

  
        Hosts is a system file with no extension. It can be opened with tools such as Notepad. Its function is to establish a related "database" between some commonly used URL domain names and their corresponding IP addresses. When the user enters a login in the browser, he needs to log in. At the URL, the system will automatically find the corresponding IP address from the Hosts file. Once found, the system will immediately open the corresponding web page. If it is not found, the system will submit the URL to the DNS domain name resolution server for IP address resolution. Now the author introduces you to the three special uses of the document.

rediscover the "failure" URL

I very much ashamed to mention it, the other day a couple of times to log Sohu's site, you can home would not open, so he was convinced that Sohu may be due What adjustments have been made to shut down the server, and the author even sneaked a text message to report to friends about the "smashing news" that he found! When the author knows that the legendary Sohu website can be opened on almost all other computers and only I can't open it, the author is stupid. Is it really a "personal problem" that friends say...

According to the general problem of solving the problem, enter "ping www.sohu.com" in the running box, and find that the IP address returned is not "220.181.26.133" corresponding to Sohu, but the inexplicable "127.0.0.1"! Originally, some webpage malicious scripts modified the author's Hosts file, that is, added a "127.0.0.1 www.sohu.com" record in the Hosts file. When I entered Sohu's URL in the address bar, it was parsed by the system. The IP address that came out is not the correct "220.181.26.133" but "127.0.0.1", so naturally it will not open.

The solution is very simple, find the Hosts file in the c:\\windows\\system32\\drivers\\etc folder and open it with Notepad (Windows 9x/Me system is found in the C:\\Windows folder), The error record (such as "127.0.0.1 www.sohu.com") or all the records are deleted, the file is saved, and then the site of Sohu should be unblocked.

Tip: If you feel the Hosts file manually to find and manually specify the Notepad tool to open the Hosts file ?? Hosts file is not associated with the Windows Notepad ?? too much trouble, you can at http : //Cn.zs.yahoo.com/start.htm
Download and install "Yahoo Assistant", open "IE Repair Expert" in its operation panel, switch to "Edit Hosts Table" tab, the software will automatically read Hosts All the records in the file, the user can check the error record that needs to be deleted and click the "delete" button or simply click "clear the Hosts table", the operation is more intuitive and convenient. Of course, you must click the "Save Now" button before exiting the program.

Automatically block webpage malicious plugin

Watching free movies and TV shows on the Internet is a big hobby of the author. I was recommended by a heroic friend some time ago, and I finally found a very good free online movie. Site, but before opening each movie play page, the site will pop up a webpage asking for the installation of Baidu toolbar and enter the download and install state without waiting for the user's consent! Although this webpage window can be closed, the movie to watch is not one. Every time you connect to the download, it will definitely affect the opening speed of the normal webpage and the smoothness of the video being played.
Through observation, the Baidu toolbar installation window popped up in each movie play page is the same URL. Because the original URL is longer, we use http://www.123.com/aa.exe< Br> Instead, below we open the Hosts file in the system folder, open a new line in the file, enter "0.0.0.0 http://www.123.com/aa.exe
" (enter content There is no quotation mark, but there is a space between the IP address and the URL. Then save the file and exit. When the movie site tries to open the http://www.123.com/aa.exe
page, the system will automatically Parsing it into an IP address that is not possible, such as "0.0.0.0", thus blocking the webpage plugin.

Tip: 1. Users can use the same method to add other malicious plug-ins, various web pop-up ads and some illegal websites to the Hosts file for complete blocking. In addition, if users need to add a masked URL to the Hosts file frequently, you don't have to go to the system directory every time to find the Hosts file: also switch the "Yahoo Assistant" to the "Edit Hosts Table" tab, click the "Add" button. This allows you to add blocked URLs to the Hosts file in bulk.

2. Have you ever experienced such a strange thing: in the process of normal browsing of the webpage or other office operations, IE will automatically pop up the full-screen webpage advertisements every once in a while and the advertisement content of these webpages will automatically change randomly! However, the form of the URL is relatively fixed: such as http://www.5xt.Net
, http://www.5xt.Net/v/
and http://www.5xt.Net/new
/etc. In fact, this is a series of Trojan viruses like "Win32.Troj.PopWeb". You can also parse these URLs into "0.0.0." 0", thus getting rid of the virus harassment.

One-click login to the LAN designated server

The unit's "high work" built a CS battle server in the company's LAN, so we all have a full-fledged bachelor A good place to spend time after work. However, there is a bit of a fly in the ointment, there is no DNS server in the LAN, so we can only enter the IP address to log in every time, although only a small number of numbers, but the number is boring!

In this case, we can achieve a key log on LAN CS server by modifying the Hosts file: Open the Hosts file, also enter "221.555.78.122 aa.com" open in new blank row (Assume that 221.555.78.122 is the IP address of the CS server on the LAN), so that we can log in to the LAN CS server directly by typing "aa.com".
Copyright © Windows knowledge All Rights Reserved