Arkadaşım bir kaç tane yolla yapabilirsin. Birincisi linkleri verirken

http://www.site.com/mp3.php?file=dosya_adi

gibi kullanıp, yukarıda kullandığın header kodunu mp3.php diye kaydedip GET ile gelen dosyayı kontrol edip işlem yaparsın.

<?php
if($_GET['file']){
$file = temizleme_fonksiyonun($_GET['file']);
if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($file));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);
exit;
}
gibi. Ya da linkleri değiştirmek zorsa mp3 olanları o dosyaya yönlendirerek:

RewriteRule ^/dizin/(.*\.mp3)    /mp3.php?file=$1 [L]
Veya htconfig içine ya da sunucun destekliyorsa htacess içine:

<FilesMatch "\.(?i:mp3)$">
  ForceType application/octet-stream
  Header set Content-Disposition attachment
</FilesMatch>
ekleyerek.