hosts文件用记事本的方式打开!里面有好多垃圾网站一这么样才能彻底删除...
发布网友
发布时间:2024-04-29 07:42
我来回答
共3个回答
热心网友
时间:2024-08-01 04:16
建议用记事本打开这个文件,然后清空里面的内容。
默认的内容如下(也可清空):
# 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
热心网友
时间:2024-08-01 04:17
hosts文件的作用就是用来直接将域名转换成IP,它比互联网的域名解析更优先。
格式是:
ip 域名
127.0.0.1 www.baidu.com
这样一来,访问百度的时候就强制指向到本机IP,达到了屏蔽这个网站的目的
所以,你的hosts文件里边如果有好多垃圾网站,这是好事,你肯定是用了360或其他的什么安全软件,他自动将垃圾网站强制指向到了一个无法访问的IP上面,起到了保护你的作用。
结论:没必要删除,留着比较好
热心网友
时间:2024-08-01 04:19
用360安全卫士