|
Posted by whiskey on 11/02/06 08:54
Well, you can protect the files from direct access by adding in your
..htaccess file:
<FilesMatch "whateveryouwannaprotect">
Order deny,allow
Deny from all
</FilesMatch>
Say you wanna protect all the files with the .ext extension. I guess
that'll look like:
<FilesMatch "\.(ext)$">
Order deny,allow
Deny from all
</FilesMatch>
Of course, you need the privilege to overwrite those setings.
On Nov 2, 8:08 am, David <d...@sbcglobal.net> wrote:
> Is there a way to download a file from a directory not in the server's
> path? Eg. not under public_html? This would be for security so that
> the files can never be directly access vial the web.
>
> I did a search on PHP + download but this garnered many unless web
> sites.
>
> Thanks
[Back to original message]
|