$_REQUEST["url"]; $requested_root_domain = 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/footer.php"; ?> { "instances": [ { "name": "matrix/pronouns/other", "value": "<span>curl -I </span><a rel="nofollow noopener noreferrer" target="_blank" href="https://liv.town">liv.town</a>", "verified_at": null } ], "bot": false, "discoverable": true }, { "shortcode": "floofCat", "static_url": "https://quack.social/files/dafaeb02-a2c1-4457-ad59-3b923ff3fbc3", "url": "https://quack.social/files/dafaeb02-a2c1-4457-ad59-3b923ff3fbc3", "visible_in_picker": true } ], "tags": [], "card": null, "poll": null, "application": null, "language": null, "pinned": false, "reactions": [], "emoji_reactions": [], "bookmarked": false, "quote": null, "edited_at": null }, { "shortcode": "gentowo", "static_url": "https://quack.social/files/fca4f0e1-298d-4fdd-8541-2ef673e9bc11", "url": "https://quack.social/files/fca4f0e1-298d-4fdd-8541-2ef673e9bc11", "visible_in_picker": true