How to get site content when CloudFlare protection is installed on it?

Code stopped working:

$url = 'https://xxx.com/'.$pag.'/'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HEADER, false); $data = curl_exec($curl); curl_close($curl); 

Closed due to the fact that the essence of the question is not clear to the participants of VenZell , aleksandr barakin , fori1ton , cheops , user194374 9 Jul '16 at 12:01 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • And what does it look like, "CloudFlare protection"? Is added a captcha "click on the images of the rivers"? Perhaps, as a questioner, this is obvious to you, but for me, as a reader, the question is completely incomprehensible. I suggest you reformulate the question and clarify. - AK
  • try to set the leader when connecting to the site Content-type: application/x-7z-compressed - Bogdan Gudyma
  • Protection waits for 5 seconds then loads the site content. - Sauron
  • Now they have removed the protection as it were, and everything works as it was. - Sauron

0