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

这段代码不光可以隐藏图片,代码后三行不用改,连FLASH真实地址也可以隐藏.

用这个结合其它技术可以防止盗链.

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2021-07-24
  • 2021-08-04
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2022-01-26
  • 2021-09-07
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案