绿色资源网:您身边最放心的安全下载站! 最新软件|热门排行|软件分类|软件专题|论坛转帖|厂商大全

绿色资源网

技术教程
您的位置:首页操作系统windows → hosts文件位置、hosts文件是什么?hosts文件修复方法

hosts文件位置、hosts文件是什么?hosts文件修复方法

我要评论 2012/01/09 20:51:45 来源:绿色资源网 编辑:downcc.com [ ] 评论:0 点击:533次

(1)什么是Hosts文件?
Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。

(2)为什么进行Hosts 文件修复?

很多病毒会修改Hosts文件,例如:把Baidu、Google等常用地址均指向病毒网站,只要你上网搜索,自然会中毒!也会利用修改Hosts文件把购物、银行等网站指向钓鱼网站,盗取您的账号密码。更有甚者,病毒会通过修改Hosts使您无法访问杀毒软件官网,无法下载杀毒软件进行查杀,所以Hosts文件修复非常重要。

hosts文件位置

windows 系统:C:\WINDOWS\system32\drivers\etc

hosts 文件内容:

# Copyright (c) 1993-1999 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

127.0.0.1 localhost


如果你怀疑你的hosts文件 被病毒 木马修改,可复制以上内容修复hosts 文件。

如果你是windows 7系统,请看:windows 7中hosts文件被修改怎么修复:

关键词:hosts,hosts文件

阅读本文后您有什么感想? 已有 人给出评价!

  • 0 欢迎喜欢
  • 0 白痴
  • 0 拜托
  • 0 哇
  • 0 加油
  • 0 鄙视