Jump to content

get content html website use cloudflare


Go to solution Solved by requinix,

Recommended Posts

  1. $crl = curl_init();
  2. $url = "http://kissanime.com/";
  3. curl_setopt($crl, CURLOPT_URL, $url);
  4. curl_setopt($crl, CURLOPT_HEADER, 1);
  5. curl_setopt($crl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0');
  6. curl_setopt ($crl, CURLOPT_FOLLOWLOCATION, false);
  7. curl_setopt($crl, CURLOPT_FOLLOWLOCATION, 1);
  8. curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1);
  9. $content = curl_exec($crl);
  10. curl_close ($crl);

 

 

Use Curl do not get content. 

Edited by sangnhoc
  • Solution

CloudFlare is using a mechanism that is specifically designed to prevent people from doing the kinds of things you're trying to do.

 

You're out of luck.

Edited by requinix
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.