是否可以让PHP不显示服务器共享IP?
我使用 PHPproxy 脚本每次使用不同的 IP 加载它,
即
208.115.213.35/~acct/proxy
174.12.19.254/~acct/proxy
208.115.213.34/~acct/proxy
example.com/proxy
当我使用上面的任何链接访问此网站 http://www.whatsmyrealip.com/
时,上面的所有链接都显示相同的 IP显示每个网址中使用的 IP,whatsmyrealip.com 显示我的服务器共享 IP 服务器,不管我使用哪个 IP 来访问该网站。是否可以在我想要的时候使用特定的IP?
I am using PHPproxy script loading it every time with a different IP
i.e
208.115.213.35/~acct/proxy
174.12.19.254/~acct/proxy
208.115.213.34/~acct/proxy
example.com/proxy
all links above show the same ip when I access this website http://www.whatsmyrealip.com/
using any of the links above instead of showing the ip used in each url, whatsmyrealip.com show my server shared ip server never mind which IP i use to access the website. Is it possible to be able to use a specific ip when I want to ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很难确切地知道你在这里问什么,但答案可能是否定的。
如果我对您的问题的理解是正确的,那么您有一台具有多个 IP 地址的服务器,并且您希望能够控制它使用哪个 IP 地址来访问互联网。为了控制这一点,您需要控制服务器的 路由表,因为您说这是一个
共享盒子
,不太可能是您可以控制的。如果我对您问题的理解不正确,或者您需要更多解释,请告诉我。
It's hard to know exactly what you are asking here, but the answer is probably no.
If my understanding of your problem is correct, you have a server that has multiple IP addresses, and you want to be able to control which IP address it uses to access the internet. In order to control this, you need to have control over the server's routing table, which since you say this is a
shared box
is unlikely to be something you can control.If my understanding your question is incorrect, or you would like more of an explanation, let me know.