Reply to Re: Downloading from a directory not in the server's path?

Your name:

Reply:


Posted by David on 11/02/06 19:08

Would this allow someone to download the file from a link on a web
page? I need to allow downloads but not direct web access to the
directory.
On 2 Nov 2006 00:54:47 -0800, "whiskey" <alex.habar.nam@gmail.com>
wrote:

>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]


Удаленная работа для программистов  •  Как заработать на 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

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