Go homepage(回首页)
Upload pictures (上传图片)
Write articles (发文字帖)

The author:(作者)归海一刀
published in(发表于) 2014/2/17 7:29:53
php如何隐藏图片的真实地址_[PHP教程]

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真实地址也可以隐藏.
用这个结合其它技术可以防止盗链






If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)





QQ:154298438
QQ:417480759