sangnhoc Posted June 16, 2015 Share Posted June 16, 2015 now there are many pages with CloudFlare told you should not get the crawler, eg kissanime.com page, I do not get content.help me, please Link to comment https://forums.phpfreaks.com/topic/296847-get-content-html-website-use-cloudflare/ Share on other sites More sharing options...
requinix Posted June 16, 2015 Share Posted June 16, 2015 What are you talking about? Link to comment https://forums.phpfreaks.com/topic/296847-get-content-html-website-use-cloudflare/#findComment-1514103 Share on other sites More sharing options...
sangnhoc Posted June 17, 2015 Author Share Posted June 17, 2015 I'm crawler kissanime.com page. error 503. I used crawler library. please help me how to get html tks all Link to comment https://forums.phpfreaks.com/topic/296847-get-content-html-website-use-cloudflare/#findComment-1514135 Share on other sites More sharing options...
sangnhoc Posted June 17, 2015 Author Share Posted June 17, 2015 $crl = curl_init(); $url = "http://kissanime.com/"; curl_setopt($crl, CURLOPT_URL, $url); curl_setopt($crl, CURLOPT_HEADER, 1); curl_setopt($crl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0'); curl_setopt ($crl, CURLOPT_FOLLOWLOCATION, false); curl_setopt($crl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec($crl); curl_close ($crl); Use Curl do not get content. Link to comment https://forums.phpfreaks.com/topic/296847-get-content-html-website-use-cloudflare/#findComment-1514136 Share on other sites More sharing options...
requinix Posted June 17, 2015 Share Posted June 17, 2015 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. Link to comment https://forums.phpfreaks.com/topic/296847-get-content-html-website-use-cloudflare/#findComment-1514139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.