【发布时间】:2012-08-22 07:13:25
【问题描述】:
我的网站需要您的帮助http://usb-online.fr。这是一个 php 文件托管网站,这里是下载内容的一部分:
header("Content-Type: $mime; name=\"$fichier\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: $taille");
header('Content-Description: Fichier hebergé par usb-online.fr');
header("Content-Disposition: attachment; filename=\"$fichier\"");
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
ob_clean();
flush();
log_download($file,$infos['auteur'],$taille);
bunzip2($path);
如果你试试这个网址:
http://usb-online.fr/file-download-822MjYzMg.html
你会看到一个下载框打开了,图像没有显示,这就是我想要的。
但是如果用户在网站上做<img src="http://usb-online.fr/file-download-822MjYzMg.html"/>,他可以显示图像并且我的服务器变得繁忙。我不想让这个,我该怎么办?
http://usb-online.fr/file-download-822MjYzMg.html
【问题讨论】: