Web Proxy



if ($_SERVER['REQUEST_METHOD'] === 'POST') { $url = filter_input(INPUT_POST, 'url', FILTER_VALIDATE_URL); if ($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $data = curl_exec($ch); curl_close($ch); echo $data; } else { echo 'Invalid URL'; } } ?>