You are here: Re: [PHP] secure document : solution wanted « PHP « IT news, forums, messages
Re: [PHP] secure document : solution wanted

Posted by Charles Hamel on 04/06/05 19:02

"Duncan Hill" <dhill+php@cricalix.net> wrote in message
news:200504061633.44950.dhill+php@cricalix.net...
> On Wednesday 06 April 2005 16:23, Charles Hamel typed:
>> Hi
>>
>> I am bulding a secure intranet.(php, mysql, apache)
>> I am using a session and Mysql to handel the user accounts. Everythying
>> works fine with that.
>>
>> The client now needs to share word/pdf document with the registered user.
>> I
>> created a secure directory using .htaccess for this purpose and it works
>> as
>> well .... the user are promt to enter a username password.
>
>> I was expecting this to work ...
>> http://username:password@www.domain.com/safeDir/Word.doc but it isn't.
>
> IE dropped support (or severely neutered it) for username:password in URLs
> a
> while back.
>
> One way to handle this is to write a wrapper script that accepts the file
> name
> as a parameter. The script verifies that the user is allowed to access
> the
> file, and sends back the file with appropriate content type etc. Files
> can
> then be stored outside of the document root, preventing access even if you
> guess the file name.

Can you provide a little more infos about wrapper scripts ... first time
earing about this expession.

Can this script be written in php ... or it is some kind of cgi? Any
exemple online of these type of script that a could study to make my own?

Thanks
Charles

 

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

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