怎么修改hosts文件

作者:小小谷 | 创建时间: 2023-05-05
正确的配置host文件,可以加快对某些网站的访问速度,也可以屏蔽一些网站。...
怎么修改hosts文件

操作方法

打开电脑里面的系统盘,一般是C盘,然后打开以此打开“C:\Windows\System32\drivers\etc”

这个就是传说中的“host”文件。

为了安全起见,可以先备份这个文件。复制这个文件到桌面。然后鼠标右键选择“打开方式”

选择用“记事本”打开。

这个里面就是host文件的内容。默认内容如下“ # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # #      102.54.94.97     rhino.acme.com          # source server #       38.25.63.10     x.acme.com              # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1       localhost # ::1             localhost 0.0.0.1 mssplus.mcafee.com ”

根据我们的需要,可以在最后面加入相应的信息。

点击“文件”,保存,然后直接替换到系统盘的host文件。

温馨提示

替换host文件之前,先备份host文件。
点击展开全文

更多推荐