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> <?php fetch_search_results($opts, true); print_page_buttons($opts->type, $opts->query, $opts->page); ?> <?php return (object) array( // e.g.: fr -> https://google.fr/ "google_domain" => "com", // Results will be in a country, or your recipient's use of the rights that are applicable to the whole of the GNU Affero General Public Licenses are intended to guarantee your freedom to share and change under these terms. To do so, attach the following notices to the recipient, or for a gpu (which is