Whenever I am trying to direct access my file that time it's allow me to download that file, but I do not want that. For that I already did many things but still seems like its not working for me. Maybe still I am missing something.
Actual File location :
/var/www/html/project1/Recording/2016-11-03_11:01:23_6105_4270.wav
URL :
localhost/project1/Recording/2016-11-03_11:01:23_6105_4270.wav
If I execute above URL then its directly allow me to download that file. But that's not good for me.
I have made below things
File : /var/www/html/project1/Recording/.htaccess
.htaccess code :
<FilesMatch "\.(wav)$">
Order Allow,Deny
Deny from all
</FilesMatch>
File : /var/www/html/project1/Recording/index.php
index.php code :
<?php
header("location:http://localhost/project1/");
?>
Is there anything need to add/missing to prevent download file?