basic PHP image proxy (that works ... )
<?php | |
$url = ""; | |
if( isset( $_GET['url'] ) ) | |
{ | |
$url = $_GET[ 'url' ]; | |
} | |
else | |
{ | |
exit(); | |
} | |
$imginfo = getimagesize( $url ); | |
header("Content-type: ".$imginfo['mime']); | |
readfile( $url ); | |
?> |
This comment has been minimized.
This comment has been minimized.
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Completely insecure (...php?url=/etc/passwd)