host文件怎么写

1.host文件的语句怎么写打开电脑的系统盘(一般默认为C盘):C盘 -> Windows -> System32 -> drives -> etc -> hosts文件
将hosts 文件已记事本的方式打开,注意最好是使用记事本,因为hosts文件对格式的要求非常严格,可能不同的软件打开,格式是不一样的,那样host是不能配置成功的
将需要加入的host地址,加入hosts 文件中,如果需要在加入的host地址添加注释,可以在注释语句前加入 “#”
保存hosts文件,重启浏览器,输入地址即可
5
如果在配置完成后,不能访问网站,则重新打开hosts文件,看文件的格式是否正确,如果不正确,修改后,保存,再次访问
6
配置完成后,hosts 文件示例(应网友需求添加)
2.怎么写Hosts文件开始--搜索--文件和文件夹--hosts,搜索 。右侧,打开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
------ 屏蔽迅雷看看广告 ------
0.0.0.0 pubstat.sandai.net
0.0.0.0 mcfg.sandai.net
0.0.0.0 biz5.sandai.net
0.0.0.0 float.sandai.net
0.0.0.0 cl.kankan.xunlei.com
0.0.0.0 211.94.190.80
0.0.0.0 mtips.xunlei.com
0.0.0.0 211.94.190.80
0.0.0.0 mtips.xunlei.com
0.0.0.0 adsresult.joywell.com.cn
0.0.0.0 advstat.xunlei.com
0.0.0.0 wy.xunlei.com
0.0.0.0 kkpgv.xunlei.com
0.0.0.0 statis.kankan.xunlei.com
0.0.0.0 server1.adpolestar.net
【host文件怎么写】0.0.0.0 mpv.sandai.net
楼主大可不必在乎迅雷的提示,因为迅雷检测到其广告被屏蔽掉 。如果修复后,当你打开迅雷的时候,就会有弹窗广告 。
3.host文件是什么说实话,你遇到的问题我没遇到过~看到楼上林林总总的写了那么多,虽然道尽其中奥秘,但是如此繁琐也难免令人产生厌倦之感,总之hosts就是一个解析文件,起到中转作用 。这里我给LZ几个建议,你先把所有的建议看完,然后再行定夺:1.把system32\drivers\etc目录下的hosts文件设置NTFS权限,禁止任何用户修改(包括system账户) 。
如果是FAT或FAT32的文件系统,用
convert c: /fs:ntfs
命令转换为ntfs格式 。(这个建议来自百度知道)2.如楼上所言,直接删除该文件(对系统无影响)3.下载360安全卫士,强制修复IE,修复系统……
4.修改本机host文件怎么弄首先告诉你图片信的含义:
域名指向是指把当前域名指向到别的网站、网站下的目录、IP地址下的目录,你的HOST可能被修改为指向本地的局域网内的服务器,即192.168.0.136的机器,如果你要修改的话,可参照如下方法:
用记事本打开后 修改为
# 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