昨天看了不明网站,今天上QQ就显示HOST文件被修改,而且进如空间的时间就弹出一个中奖网页
- 提问者网友:我没有何以琛的痴心不悔
- 2021-07-18 10:15
- 五星知识达人网友:你可爱的野爹
- 2021-07-18 10:50
一般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
可以把原来的删掉,自己在C:\Windows\system32\drivers\etc新建的hosts.txt文本,复制以上一段,然后以hosts为名字保存。去掉TXT后缀名
或者用以下方法去后缀名
(点击“开始”→“运行”,键入“cmd”,输入c:\Windows\system32\drivers\etc,再键入dir查看当前目录下的文件,输入ren hotsts.txt hosts命令轻松的就把hosts文件的后缀去掉了。