image_proxy.php 256 B

1234567891011121314
  1. <?php
  2. require "misc/tools.php";
  3. $url = $_REQUEST["url"];
  4. $allowed_domains = array("pinimg.com", "i.pinimg.com", "pinterest.com");
  5. if (in_array(get_root_domain($url), $allowed_domains))
  6. {
  7. header("Content-type: image/jpeg");
  8. echo request($url);
  9. }
  10. ?>