���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/st2/logs/v3/examples/ |
<?php function curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $head[] = ":authority: play.kissasian.es"; $head[] = "accept: application/json, text/javascript, */*; q=0.01"; $head[] = "accept-encoding: gzip, deflate, br"; $head[] = "accept-language: vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5"; $head[] = "origin: https://kissasian.es"; curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36'); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_REFERER, 'https://kissasian.es/Drama/Our-Glamorous-Time-2018/Episode-001?id=51565'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $page = curl_exec($ch); curl_close($ch); return $page; } require __DIR__ . '/../src/autoload.php'; use CloudflareBypass\RequestMethod\CFStream; $stream_cf_wrapper = new CFStream(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 context) )); // Get Example: 1 $opts = array( 'http' => array( 'method' => "GET", 'header' => array( 'accept: */*', // required 'host: kissasian.es', // required 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36' ) ) ); $url = "https://kissasian.es/ajax/anime/load_episodes_v2?s=ptserver&episode_id=51565"; $ctx = $stream_cf_wrapper->contextCreate( $url, stream_context_create( $opts ) ); $c1 = file_get_contents( $url, false, $ctx ); $arr1 = json_decode($c1); $url2= $arr1->value; $c2 = curl($url2); $arr2 = json_decode($c2,true); print_r($arr2['playlist'][0]['sources']); exit(); ?>