Safe Internet access during summer vacation helps you easily block poor websites

Source: Internet
Author: User

To do things well, you must first sharpen your weapon. First, let's talk about Windows. There is a file named Host in Windows (If your operating system is Windows 98, go to the c: \ Windows directory to find it, for Windows 2000, go to the c: \ Windows \ System32 \ DRIVERS \ etc directory.) The word "host" is the meaning of the host, this file stores the ing between the domain name and IP address, that is, the one-to-one correspondence between an IP address and a domain name.

For example, when you enter the "http://www.yesky.com hosts file" in the address bar of IE browser, in fact, carefully look at it, you will see the IP address in the lower left corner of IE, but it is a flash. If this ing is not found in the HOST file, IE queries DNS further.

There are thousands of DNS servers on the Internet. They all play the same role, that is, they store file groups similar to HOSTS. After finding these groups, they will be the same as what we just said, if it cannot be found, it indicates that the domain name you entered has not been applied for, and IE will return the "Http 404" error, that is, the prompt cannot be found on the webpage.

Well, with so many basic knowledge, we started to talk about today's theme officially, that is, using the HOSTS file function of the local machine to shield the poor site, in this way, the website is blacklisted. First, right-click the HOSTS file we just found and select "open ", in the "open mode" dialog box, select the "Notepad" Program (because the icon of the HOST file is not recognized by Windows, but it is essentially a text file, the purpose of this operation is to prevent users from making changes at will. You don't need to take a closer look at the above pile. Observe the following line and one line is written like this: "127.0.0.1 Localhost" (note that spaces must be used in the middle). The "127.0.0.1" at the beginning is an IP address. However, it is special and indicates "localhost ", that is, the meaning of "Local Machine", that is, the machine currently used by the operator. Then we press Enter next to this line, enter "127.0.0.1 www.xxx.com" in this format, and save the disk to exit, enter the "http://www.xxx.com" address in the IE Address Bar and press Enter. Think about what will happen? Maybe you guessed it. Yes, at this time, IE cannot take you to the real IP address corresponding to this domain name. Instead, it will take you to the IP address 127.0.0.1, that is to say, you have turned to a circle and ran back, do you know? In this case, will the website be blocked?

  • 1
  • 2
  • Next Page
[Content navigation]
Page 1st: Safe Internet access during summer vacation helps you easily block unscrupulous websites Page 2nd: Safe Internet access during summer vacation helps you easily block unscrupulous websites

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.