如何在hosts中添加网址,贴到哪儿
2个回答
快又稳
2024-10-29 广告
2024-10-29 广告
虚拟主机域名解析是将注册的域名指向您购买并配置的虚拟主机空间地址的过程。通过DNS(域名系统)服务,用户输入的域名会被转换成对应的IP地址,从而实现网站的访问。这一步骤对于网站的上线至关重要,确保了用户能够通过易记的域名而非复杂的IP地址来...
点击进入详情页
本回答由快又稳提供
展开全部
用记事本打开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
在最下面添加一行,先输入IP地址,然后输入网址,中间用几个空格隔开:
比如
11.22.33.44 www.abcd.com
如果要添加多个网址,用同样的方法,在下面添加多行。
如果要屏蔽某个网址,输入无效的IP地址;
如果要解析指定的网址,输入正确的IP地址。
# 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
在最下面添加一行,先输入IP地址,然后输入网址,中间用几个空格隔开:
比如
11.22.33.44 www.abcd.com
如果要添加多个网址,用同样的方法,在下面添加多行。
如果要屏蔽某个网址,输入无效的IP地址;
如果要解析指定的网址,输入正确的IP地址。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询