Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Windows Authentication
Hi
I am new to using security in web sites / scripts and was wondering if
someone could help me out.
I would like to "protect" a specific folder on my web site using Windows
Authentication.
The web site is current hosted by an ISP on a Windows NT Box running
Microsoft-IIS/5.0 with php 4.3.8 with Server API of CGI/Fast CGI.
I cannot use .htaccess files, nor use CHMOD to change the file permissions
myself.
My idea is to get the ISP to set a username/password on the "restricted"
folder and ensure that permissions are propagated on all files dropped into
the folder.
Currently I have member's authentication in place to allow a user to log in
a view a list of files that they can download. Currently there is no
permissions on the folder containing the files to download meaning that if
the user or anyone else new the URL they could simply download the file
without our knowledge / approval.
What I would like to do, is simply protect the downloads folder so that if
anyone stumbles across it, it wouldn't be an "open" directory.
So my question is: I would like to have some code (eg
GetRestrictedFileToDownload($fileid)) that would allow the user to download
the file. The purpose of the code would be to use HTTP authentication for
windows and then pass the file to the browser.
Can this be done and if so how?
Thanks
Dominic



Report this thread to moderator Post Follow-up to this message
Old Post
news.adam.com.au
04-15-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:19 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.