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