-
hosts文件的内容是什么
- 作者:李钰婷 分类:电脑技术 发布时间:2023-01-31 06:01:42
win7系统下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 inpidual 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 inpidual # lines or following the machi...
win7系统下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 inpidual 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 inpidual
# 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文件位置在哪儿?
Win7系统下hosts文件失效无法修改怎么办?
总结:以上就是hosts文件的内容是什么和清理hosts文件的方法了,希望对大家有帮助
猜您喜欢
- 如何通过代理IP加强您的密码安全防护..2024-04-25
- 我的世界hmcl启动器游戏非正常退出?..2024-04-07
- Steam连不上网?这5个原因可能是你的死..2024-04-07
- Edge浏览器提示:文件类型危险,如何..2024-04-07
- PCL2启动器: 简单易用的联机方式,与你..2024-04-07
- 鼠标驱动更新后仍无法动?揭秘你可能..2024-04-06
相关推荐
- 轻松掌握!Win11设置双音频输出,让声..2023-12-12
- 鼠标不动了是怎么回事 电脑鼠标动不..2023-11-25
- 电脑内存8G和16G有什么区别?教你区别..2021-06-11
- 联想拯救者:解锁摄像头,让游戏世界..2023-12-11
- Word如何只打印部分文字?Word只打印部..2021-03-19
- 怎么打开使用电脑蓝牙..2017-06-22