【转】隐藏自己的图片文件地址,有效防止盗链

代码如下:

<?
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也可以隐藏。。。

posted @ 2012-10-18 19:48  阿夏  阅读(388)  评论(0编辑  收藏  举报