Binternet/image_proxy.php

15 lines
256 B
PHP
Raw Permalink Normal View History

<?php
2023-02-16 14:51:28 +00:00
require "misc/tools.php";
2023-02-16 14:51:28 +00:00
$url = $_REQUEST["url"];
$allowed_domains = array("pinimg.com", "i.pinimg.com", "pinterest.com");
2023-02-16 14:51:28 +00:00
if (in_array(get_root_domain($url), $allowed_domains))
{
2023-02-17 12:20:14 +00:00
header("Content-type: image/jpeg");
2023-02-16 14:51:28 +00:00
echo request($url);
}
2023-02-17 12:20:14 +00:00
?>