isps 服务器上的 Fsockopen 超时
我有一个 apache 服务器在家里晒太阳用于测试目的,并且我有一个英国 ISP 的帐户。当在我的家庭服务器上使用 fsockopen 时,一切正常,我可以连接不同的端口(我专门使用 25 来测试邮件服务器),但是当我将网站上传到我的 ISP 时,我无法再使用 fsockopen 连接 - 它只是时间出去。
我认为他们有安全限制,阻止我使用此功能 - 我的想法是否正确,或者对此有其他解释吗?
I have an apache server sunning at home for test purposes and I have an account with a uk isp. When using fsockopen on my home server everything works fine, I can connect on different ports (I am using specifically 25 for testing a mail server) but when I upload my site to my ISP then I can no longer connect using fsockopen - it just times out.
I take it they have a security restriction on their side preventing me from using this feature - am I correct in thinking this or is there another explanation for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,超时意味着远程主机无法访问。 “无法访问”有几个原因,其中之一是您的 ISP 阻止了 PHP 初始化的传出连接。另一个原因是远程主机阻止您的连接,以及其他一些原因。
但基本上我认为原因是你的 ISP 阻止了 PHP 功能。
Well as far as i know a timeout means that the remote host is unreachable. There are a few reasons for "unreachable", one of them is that your ISP is blocking outgoing connections wich PHP initializes. Another reason is that the remote host is blocking your connection, and a few other.
But basicly i think the reason is that your ISP is blocking the PHP feature.
最有可能的是,它是处于“隐形”模式的防火墙。当您尝试打开远程服务器上端口 25 的套接字时,它会假装什么都没有。这是一种非常常见的安全措施。
Most likely, it's a firewall in "stealth" mode. When you try opening a socket to the port 25 on he remote server, it pretends that nothing's there. It's a quite common security measure.