Quote:
Originally Posted by LouisB
Is there anyway to stop direct access to .zip/.rar files in downloads directory using .htaccess? Only allow local/php script access to serve the download to the user?
|
Yes. Something like this should work.
<FilesMatch "\.(zip|rar)$">
Deny from all
</FilesMatch>
Or if you are not displaying images you could simply use:
Deny from all