So I made the website and the code but it can’t seem to work
<?php
if (isset($_GET['src'])) {
$url = $_GET['src'];
if (filter_var($url, FILTER_VALIDATE_URL) && strpos($url, 'cdn.discordapp.com') !== false) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$result = curl_exec($ch);
curl_close($ch);
if ($result !== false) {
echo "<pre>" . htmlspecialchars($result) . "</pre>";
} else {
echo "Error fetching the content.";
}
} else {
echo "Invalid URL provided.";
}
} else {
echo "No URL specified.";
}
?>
I tried to ask my friends but they didn’t know how to solve the issue neither
New contributor
Kosmo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1