title: "Check position in Google" script works with "google.com" but not "google.pl" - is my server banned?
body: <p>I have written a PHP script based on a piece of code I've found using Google. It's purpose is to check particular site's position in Google, given a particular keyword. Firstly, it prepares an appropriate URL to query Google (something like: "<em>http://www.google.com/search?q=<strong>the+keyword</strong>&amp;ie=utf-8&amp;oe=utf-8&amp;num=50</em>"), then it downloads the source of a site located at the URL prepared before. After that, it counts the position using regular expressions and the knowledge about what div's classes does Google use for results.</p>
  
  <p>The script works fine when the URL I want to download from is in the domain "google.com". But since I it's intended to check position for polish people, I would like it to use "google.pl". I wouldn't care, but the search results can really vary between the two (even more than 100 positions of difference). Unfortunately, when I try to use the "pl" domain, the cURL just doesnt't return anything (it waits for the timeout first). However, when I ran my script on another server, it worked perfectly on both of "google.com" and "google.pl" domains. Do you have an idea why can something like this happen? Is there a possibility that my server was banned from querying the "google.pl" domain?</p>
  
  <p>Here, my cURL code:</p>
  
  <pre><code>private function cURL($url)
  {
      $ch = curl_init($url);
      curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
      curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,5);
      return curl_exec($ch);
      curl_close($ch);  
  }
  </code></pre>