Cloudflare: cURL header get blocked
<p>I have the problem that cloudflare (PRO = Paid) blocked my php cURL to get header information. I am owner of that site and i have whitelisted my own server-ips.</p>

<p>Here are the code, all other website without CF works less problems:</p>

<pre><code>&lt;?php 
$url = "https://domain.tld";

$ch = curl_init($url); 
curl_setopt($ch, CURLOPT_HEADER, true); // we want headers 
curl_setopt($ch, CURLOPT_NOBODY, true); // we don't need body 
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
curl_setopt($ch, CURLOPT_TIMEOUT,10); 
$output = curl_exec($ch); 
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); 
curl_close($ch);

echo 'HTTP code: ' . $httpcode; 
?&gt;
</code></pre>

<p>What can i do there? </p>

<p>Thanks</p>