To share the right way for Web developers to modify the hosts file to implement local domain name access

Source: Internet
Author: User

1, how to correctly modify the Hosts file:

Generally open the Hosts file will have an example, according to its format modification can

For example, the following content:

# For example:

#

# 102.54.94.97 Rhino. Acme. COM # source Server

# 38.25.63.10 X. Acme. COM # x client host

that represents the open
Rhino Acme. COM This URL will be resolved to 102.54.94.97,ip address and URL at least one space between, of course, it is recommended by pressing the table key to edit, that is beautiful and not easy to write errors, which is to resolve to the local pensive address to block some unfriendly website or IP, of course, in front of a # To temporarily invalidate the line.

2.hosts file location:

xp,2000 and other systems in the C:\windows\system32\drivers\etc folder

Windows 9x/me System in C:\Windows folder,

3. The system properties of the Hosts file:

The Hosts file has hidden properties by default, the system default settings are not visible, of course, into this file in addition to the direct input path can not be seen. WORKAROUND: Open My Computer, click Tools, Folder Options, check the box, hide protected system files, OK.

Cannot be saved after modification:

In the Hosts file, right-click Properties----read-only properties are removed, and you can save them.

In the changes to the Hosts file, but also often encountered after the modification of the invalid after saving, here to remind everyone to note: A lot of people are written in the last line, after writing the last line in the case of no carriage return, this line is not effective. Always remember to enter.

We recommend that you follow this habit: "IP address +table + domain + ENTER" to add records.

4. The hosts cannot be opened or edited in UAC security policy:

If you encounter Windows VISTA or the Windows 7 operating system cannot be opened and edited, prompt: "Cannot create file" or
The "file operation failed" prompt, which is caused by the security mechanism UAC, can be resolved using the following methods:

Press the SHIFT key, and then right-click on the Hosts file to run as administrator.

Finally, attach the relevant articles of the hosts who can go to Google to check the information : http://whosmall.com/?post=148

written in the end :forFreedom look outside the world, and it this line, not to go to Google data, finally, Amway a V--PN agent. a red apricot VPN, to Google to check the information is the absolute first choice, the connection speed, the use is also convenient. I bought is 99¥ a year, through this link (http://my.yizhihongxing.com/aff.php?aff=2509) registered after the Member center to lose the coupon code, split down, only 7 yuan per month, special benefits.

This article tags : Latest hosts download Hosts file location google search data Web Development hosts

Turn from SUN's BLOG-focus on Internet knowledge, share the spirit of the Internet!

Original Address: " for everyone to share the right way for Web developers to modify the hosts file for local domain access. "

related reading:"Aaron swartz– Internet Genius to open the life course: every moment asked himself, now the world what is the most important thing I can participate in doing?" "
Related reading: " site environment Apache + PHP + mysql xampp, how to implement a server on the configuration of multiple sites?" "

Related reading: What is the engineer culture? Why are the engineers alive? Why do I need an engineer culture as an IT or internet company? "

Related reading: useful for programmers: 2017 latest in Google's Hosts file download and summary of the various hosts encountered the problem of the solution and configuration of the detailed

related reading: the Win10 perpetual activation tutorial and how can I see if the Windows system is permanently activated? 》

Related blog:SUN ' S blog -Focus on Internet knowledge and share the spirit of Internet! Go and see:www.whosmall.com

To share the right way for Web developers to modify the hosts file to implement local domain name access

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.