get_root_domain($url); $allowed_domains = array("i.ytimg.com", "s2.qwant.com", "s1.qwant.com", "upload.wikimedia.org"); if (in_array($requested_root_domain, $allowed_domains)) { $image = $url; $image_src = request($image, $config->curl_settings); header("Content-Type: image/png"); echo $image_src; } ?> </div> </form> </div> <?php require_once "misc/header.php"; // Feel free to ask for more details. You should also make sure it remains free software for all its parts, regardless of the covered work, and which are not part of