
<?php
// Get the URL to proxy from the query parameter
$targetUrl = $_GET['url'];

// Set up cURL to fetch the content
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $targetUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Execute cURL and get the content
$response = curl_exec($ch);

// Close cURL session
curl_close($ch);

// Output the fetched content
header("Content-Type: text/html");
echo $response;
?>

