-
-
Save CortexPE/9823dfaa9a39457905085a16f240cf44 to your computer and use it in GitHub Desktop.
basic PHP image proxy (that works ... )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_GET['url'])){ | |
$url = $_GET['url']; | |
$imginfo = getimagesize($url); | |
header("Content-type: " . $imginfo['mime']); | |
readfile($url); | |
}else{ | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment