Win7 Modify the Hosts file graphics and text introduction

Source: Internet
Author: User
Tags file size

For a friend who likes to sell and sell computers, the hosts file may be familiar. In the Windows system, the Hosts file size is only about 1 K, but through this file can achieve some very magical functions, including the development of Web pages IP address, shielding the development of web sites, even shielding ads. For the new computer friends, modify the Hosts file is very simple, just want to know where the hosts file, how to simply modify, we will introduce the following details.

Where is the Hosts file? This article takes the Win7 system as an example, the XP, the Win8 and the WIN10 system, the procedure is same.

Hosts file path: c:windowssystem32driversetc

The above C refers to the system disk, the general computer system is installed in the C disk, if your computer system is not installed in the C disk, please use the actual system drive letter.

Win7 Modify Hosts file graphics and text tutorial

We can directly through the file path above to find the Hosts file, here Small compiled to teach you one of the fastest way to open modify the Hosts file method.

1, open in the Win7 Start menu, you can also use the "Win + R" combination of shortcut keys, quickly open, and then paste the Hosts file location in the open after the input box, and then the bottom of the "OK" shown in the following figure.

2, then you can quickly find the hosts file. Next, right-click on the file and choose Open with Notepad, as shown in the following illustration.

3, the use of Notepad to open, you can modify the Hosts file. Depending on the functionality you want to implement, modify it, here are a few examples.

For example: Specify the IP to access the Web site

Specify access to the computer Pepsi www.pc841.com IP address: 119.188.139.154 only under the Hosts file to add such a sentence:

119.188.139.154 www.pc841.com (Note that there are spaces between IP and URL), as shown in the following figure.

After the completion of the Add, save it, then we go to the computer ping www.pc841.com, you can see the access is the specified IP address, as shown in the figure.

This way, by modifying the Hosts file to specify the IP address, sometimes very useful, such as everyone knows that Google in the country can not open, this is mainly due to the domestic shielding Google a large number of DNS caused, if you can find some are not screened available Google server IP, according to the above method, assigned to the available IP address, will be able to access the normal Google.

Modify host file to access Google

Example two: Screen designated web site

Sometimes we can add these URLs to the hosts file to prevent unhealthy websites from being used by children, and the designated websites will not be accessed normally.

To modify the Hosts file, shielding the site is very simple, as long as the following format to operate:

127.0.0.1 www. Web sites that need to be screened. COM (such as small series to block the Pepsi NET mobile phone: m.pc841.com) Modify the Hosts file method as follows.

If you need to add more than one, on a single line, the corresponding.

Add complete, and save, then go to the computer to open the phone version of the Pepsi screen, the site will not open, as shown in the following figure.

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.