When I get the ip address using the terminal, I get an ip address for a different website, how is this possible?

时间:2019-01-09 22:25:43

标签: networking terminal dns ip-address ping

When I ping or traceroute the website I want to resolve, I get an ip address back, but when I put that into the browser, it leads to a different website. How is this possible?

2 个答案:

答案 0 :(得分:0)

浏览器发送的http请求包含一个Host标头,该标头告诉服务器您正尝试访问哪个网站。这样可以通过一个IP地址托管多个网站。

答案 1 :(得分:0)

您获得的IP地址是共享主机。在“共享托管”中,多个网站托管在同一IP地址上。如果您拥有专用托管服务,则在点击IP地址后即可访问您的网站。