hosts文件的内容是什么?怎么清理hosts文件?
hosts文件的内容是什么?怎么清理hosts文件?? win8系统下hosts文件的内容是什么?怎么清理hosts文件?
hosts文件的内容:
# 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
怎么清理hosts文件?
1、双击计算机图片。
2、写入hosts文件的存储地址,直接在文件地址栏写入一下内容就好:C:\wINDows\system32\drivers\etc\hosts。
3、按Enter键结束,跳出选中文件点击方式的弹窗,选中使用记事本点击。
4、点击后显示如下图。前面一大段是说明性的文字,可以直接将整个文档清空。
5、标准的会有以下这些内容,如果多出来的话,应该是被修改了,可以依据自己的需要来对文件进行修改。
例如:现在有许多网站不经过网友同意就将各种各样的插件安装到计算机中,有些说不定就是木马或病毒。对于这些网站可以利用Hosts把该网站的域名映射到错误的IP或自己计算机的IP,这样就不用访问了。在Hosts写上以下内容:
127.0.0.1 #屏蔽的网站
0.0.0.0 #屏蔽的网站
这样计算机解析域名就解析到本机或错误的IP,达到了屏蔽的目的。
相关教程:
hosts是什么文件?hosts文件位置在哪儿?
win8系统下hosts文件失效没有法修改如何办?
总结:以上就是hosts文件的内容是什么和清理hosts文件的办法了,希望对我们有借助
相关文章
更多+手游排行榜
- 最新排行
- 最热排行
- 评分最高
-
动作冒险 大小:322.65 MB
-
角色扮演 大小:77.48 MB
-
动作冒险 大小:327.57 MB
-
角色扮演 大小:333 B
-
卡牌策略 大小:260.8 MB
-
模拟经营 大小:60.31 MB
-
模拟经营 大小:1.08 GB
-
角色扮演 大小:173 MB