KyranRana / cloudflare-bypass

A new and improved PHP library which bypasses the Cloudflare IUAM page using cURL
MIT License
275 stars 97 forks source link

V2 Version Problem #77

Closed rapcrown closed 5 years ago

rapcrown commented 5 years ago

Not working check web browser.

`require DIR . '/vendor/autoload.php';

use CloudflareBypass\RequestMethod\CFCurl;

$curl_cf_wrapper = new CFCurl(array( 'max_retries' => 5, // How many times to try and get clearance? 'cache' => true, // Enable caching? 'cache_path' => DIR . '/cache', // Where to cache cookies? (Default: system tmp directory) 'verbose' => false // Enable verbose? (Good for debugging issues - doesn't effect cURL handle) ));

// Get Example: 1 $ch = curl_init("https://www.koreanturk.com/fluttering-warning-6-bolum-izle.html"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'); echo $curl_cf_wrapper->exec($ch); // Done! NOTE: HEAD requests not supported! curl_close($ch); `

KyranRana commented 5 years ago

I will be releasing a new build soon. Please wait for this build. Saturday it will be out by the latest.

rapcrown commented 5 years ago

Thank you waiting.

KyranRana commented 5 years ago

Cloudflare bypass has been updated. Try the above code again ?