title: recaptcha very slow on linode server
body: <p>I am using the following PHP to verify the google recaptcha:</p>
  
  <p>function checkCapcha($response,$ip){</p>
  
  <pre><code>        try {
  
  
              $url = 'https://www.google.com/recaptcha/api/siteverify';
              $data = ['secret'   =&gt; $secret,
                       'response' =&gt; $response,
                       'remoteip' =&gt; $ip];
  
              $options = [
                  'http' =&gt; [
                      'header'  =&gt; "Content-type: application/x-www-form-urlencoded\r\n",
                      'method'  =&gt; 'POST',
                      'content' =&gt; http_build_query($data) 
                  ]
              ];
  
              $context  = stream_context_create($options);
              $result = file_get_contents($url, false, $context);
              //return json_decode($result)-&gt;success;
               //echo $result;
              if(json_decode($result)-&gt;success){
                  return true;
              }else{
                  return false;
              }
          }
          catch (Exception $e) {
              return null;
          }
  
  }
  </code></pre>
  
  <p>It works perfectly from my home server, but when I use the same code on my linode it takes ages to come back with a result. The result is correct, but it takes about 3 mins.</p>
  
  <p>Can someone please advise.</p>
  
  <p>Thanks in advance</p>