Basta riscrivere un paio di header.
in PHP:
Codice PHP:
<?php 
   header
('Content-Type: application/octet-stream');
   
header('Content-Disposition: attachment; '.'filename="file.exe"'); 
?>