大网数据广告活动
网站运营与故障问答

How can I check if my hosting provider blocked outbound traffic to some IP's?

· 52CE 我爱测

I have a website powered by WordPress and I am using MailChimp with the official WP plugin. I know this plugin works as its very popular and it works on my other hosting account but not on this site. I suspect my host is blocking…

问题原文

原帖链接 · Alan Kis · CC BY-SA 3.0

I have a website powered by WordPress and I am using MailChimp with the official WP plugin. I know this plugin works as its very popular and it works on my other hosting account but not on this site. I suspect my host is blocking.

How can I check if my hosting provider blocked outbound traffic to some IP addresses?

已采纳解答

原帖链接 · Simon Hayter · CC BY-SA 3.0

The best method would be to ask your hosting provider, but if you have SSH access you could do a simple ping, curl or even traceroute. If you do not have SSH access then you may be able to run this PHP script:

SOURCE

if (!$file) $status = -1;  // Site is down
else {
    fclose($file);
    $status = ($stoptime - $starttime) * 1000;
    $status = floor($status);
}
return $status; } ?>   
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <body>
  <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="domain">
    Domain name:
    <table>
      <input name="domainname" type="text" >
      <input type="submit" name="submitBtn" value="Ping domain">
    </table>
  </form> <?php
// Check whether the for was submitted
if (isset($_POST['submitBtn'])){
    $domainbase = (isset($_POST['domainname'])) ? $_POST['domainname'] : '';
    $domainbase = str_replace("http://","",strtolower($domainbase));

    echo '<table>';

    $status = pingDomain($domainbase);
    if ($status != -1) echo "<tr><td>http://$domainbase is ALIVE ($status ms)</td><tr>";
    else  echo "<tr><td>http://$domainbase is DOWN</td><tr>";

     echo '</table>';
} ?> </body> </html>

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。