Win7系统Hosts文件在哪里?怎么修复Hosts文件

时间:2023-08-03 06:23:56 

Hosts文件是一个没有扩展名的系统文件,主要是能够加快域名解析和屏蔽网站等功能。Hosts文件是个好东西,可以帮助我们有效的屏蔽各种各样的恶意网站,从保护了我们的电脑。我们还可以对其添加或者修改,不过还有很多在使用Win7系统的用户来说,Hosts存放在的哪个地方还不知道?下面就和大家详细说一下Win7系统hosts文件在哪里,怎么修复hosts文件。

Win7系统Hosts文件在哪里?怎么修复Hosts文件

具体步骤如下:

一、Hosts文件是什么

Hosts文件主要作用是定义IP地址和主机名的映射关系,是一个映射IP地址和主机名的规定。可以用文本文件打开!当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,浏览器会立即打开对应网页,如果没有找到,则浏览器会将网址提交DNS服务器进行IP地址解析。这也是提高快速打开网页的方法!

Win7系统Hosts文件在哪里?怎么修复Hosts文件

二、Hosts文件位置在哪里

1、Windows xp/2003/vista/2008/7/8用户Hosts文件是在“c:\windows\system32\drivers\etc

Win7系统Hosts文件在哪里?怎么修复Hosts文件

2、你可以直接根据上述路径进入,也可Win+R后输入c:\windows\system32\drivers\etc

Win7系统Hosts文件在哪里?怎么修复Hosts文件

三、Hosts文件怎么修复

1、将Hosts文件复制到桌面,用记事本打开!

Win7系统Hosts文件在哪里?怎么修复Hosts文件

2、删除记事本的全部内容,将以下内容复制后放入文件然后保存:

# 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

Win7系统Hosts文件在哪里?怎么修复Hosts文件

3、将修改后的Hosts文件放入c:\windows\system32\drivers\etc替换以前的Hosts文件,修复成功!

Win7系统Hosts文件在哪里?怎么修复Hosts文件
标签:Hosts
0
投稿

猜你喜欢

  • Win10关闭F1弹出帮助窗口教程

    2023-03-05 02:18:26
  • 美篇如何进行提现 美篇余额提现的具体步骤

    2022-07-23 22:53:59
  • win7无法安装Teams怎么办?win7无法安装Teams的解决方法

    2023-11-09 00:49:42
  • Excel2016怎么取消单元格右下角显示粘贴的选项?

    2022-05-10 14:59:59
  • excel 设置有效性特定条件_Excel 2019文本长度有效性设置

    2022-03-15 13:18:06
  • U盘永不中毒的设置技巧

    2023-01-15 14:04:36
  • Win7系统怎么校准电脑的时间?

    2022-03-29 11:25:05
  • Win10系统设置不了路由器的解决办法

    2022-07-11 17:49:27
  • 百度网盘for Mac功能介绍及特色亮点有哪些呢?

    2023-01-24 10:10:30
  • word如何启动模板命令参数

    2023-11-30 08:57:46
  • UOS怎么开启透明窗口效果? 统信UOS窗口透明效果的设置教程

    2022-08-28 01:31:29
  • VISTA 下如何通过红外线连接外接设备 以索尼手机为例

    2023-01-11 10:39:24
  • Word2013文档怎么设置打印自选图形?

    2022-11-03 07:11:00
  • WPS excel表格如何隔列求和

    2023-11-01 08:39:37
  • Win10系统的截屏保存在哪里 截屏保存在哪个文件

    2022-09-16 05:39:02
  • ppt2010怎么绘制圆形立体按钮?

    2022-10-22 20:33:24
  • NVIDIA显卡Win10驱动355.60安装包下载(WHQL认证,提升游戏性能)

    2022-10-24 10:42:41
  • Excel图表横坐标怎么设置坐标名称?

    2022-03-27 16:39:51
  • excel表格数据拆分的方法

    2023-12-02 19:04:35
  • win7本地连接禁用了怎么恢复_图文详解win7本地连接的恢复步骤

    2022-03-04 10:07:16
  • asp之家 电脑教程 m.aspxhome.com