Reply to Re: [PHP] Using PHP for accsess control, preventing access to staticfiles

Your name:

Reply:


Posted by Dan Trainor on 10/02/64 11:30

Ben wrote:
> Dan Trainor said the following on 10/27/2005 10:39 AM:
>
>> Jason Motes wrote:
>
>
>>>> However, how do people protect against the downloading of real files,
>>>> ones which are not parsed by PHP? .WMV, .MOV, .ZIP, .EXE and so on? I
>>>> want to protect access to these as well, and if a visitor just types in
>>>> a URL and is able to access the file because my access control
>>>> mechanism
>>>> simply doesn't work on those types of files, what should be the
>>>> solution
>>>> here?
>
>
> <snip>
>
>> I'd like to keep the application as portable as possible; thus, I cannot
>> use any kind of htaccess hackery because I want this PHP application to
>> run on IIS, as well.
>
>
> Move the files outside the document root so that they aren't available
> via a direct URL, then create a 'file access page' in php that will
> check for the session variable and either send or not send the file
> based on whether the user has access.
>
> - Ben
>

Ben -

I knew this, but it was the "send or not send" thing that I was
concerned about ;)

Thanks
-dant

[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

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