Ano, je to možné.
Adresářům nastav práva tak, aby nebyly zvenku přístupné.
Potom můžeš použít tento postup:
<?PHP
// Define the path to file
$file = 'ryboe_tag_cloud.zip';
if(!file)
{
// File doesn't exist, output error
die('file not found');
}
else
{
// Set headers
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=$file");
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
// Read the file from disk
readfile($file);
}
?>