You are here: Re: Downloading from a directory not in the server's path? « PHP Programming Language « IT news, forums, messages
Re: Downloading from a directory not in the server's path?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация