这段代码不光可以隐"/>
PHP头条
热点:

php如何隐藏图片的真实地址


$image_path="images/"
$image_file=$image_path.$_GET['name'];
$sTmpVar = fread(fopen($image_file, 'r'), filesize($image_path));
header("Content-type: image/* ");
echo $sTmpVar;
?>

这段代码不光可以隐藏图片,代码后三行不用改,连FLASH真实地址也可以隐藏.
用这个结合其它技术可以防止盗链.

www.phpzy.comtrue/phpyy/9772.htmlTechArticlephp如何隐藏图片的真实地址 $image_path="images/" $image_file=$image_path.$_GET['name']; $sTmpVar = fread(fopen($image_file, 'r'), filesize($image_path)); header("Content-type: image/* "); echo $sTmpVar; ?> 这段代码不光可以隐...

相关文章

相关频道:

PHP之友评论

今天推荐