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

controlled access in fso
I have a SQL Server-driven website with public and secure areas.  Anonymous
connection is via IUSR and authentication for the secure area is done via
asp.  Several pages first authenticate with asp and then use the fso to
provide access to certain files for downloading or viewing via hyperlink.
Up to this point, I am satisfied that I am able to control access to certain
files and folder.

The problem arises that, if an internet user guesses the path and filename,
he can download a file through the browser.  The actual files are outside of
the website tree, and are accessed via virtual directories.  I have tried to
fix this by limiting access to the base folder to internal users only and
creating a user "IFSO" that has external access.

Where I am at this point is that I get a "File Not Found" error when the
fso.getfolder method tries to execute.  Can I pass userid and password
arguments in the getfolder method?  If not, do you have any ideas as to how
to give the website access to these folders without giving the public
unrestricted access to them?

Thank you



Report this thread to moderator Post Follow-up to this message
Old Post
WC Justice
12-23-04 08:55 PM


Re: controlled access in fso
Either put the files completely outside the web-site so that they are not
accessible via HTTP at all or put them in a web-site directory that does not
allow read access in IIS.

For an example of the second approach try these URLS:

http://www.ielearning.com/wbtroot/html/logo.gif
http://www.ielearning.com/wbtroot/asp/logo.gif

--
--Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com

"WC Justice" <BJustice@wcje.com> wrote in message
news:HVEyd.14148$wZ1.579@bignews3.bellsouth.net...
>I have a SQL Server-driven website with public and secure areas.  Anonymous
>connection is via IUSR and authentication for the secure area is done via
>asp.  Several pages first authenticate with asp and then use the fso to
>provide access to certain files for downloading or viewing via hyperlink.
>Up to this point, I am satisfied that I am able to control access to
>certain files and folder.
>
> The problem arises that, if an internet user guesses the path and
> filename, he can download a file through the browser.  The actual files
> are outside of the website tree, and are accessed via virtual directories.
> I have tried to fix this by limiting access to the base folder to internal
> users only and creating a user "IFSO" that has external access.
>
> Where I am at this point is that I get a "File Not Found" error when the
> fso.getfolder method tries to execute.  Can I pass userid and password
> arguments in the getfolder method?  If not, do you have any ideas as to
> how to give the website access to these folders without giving the public
> unrestricted access to them?
>
> Thank you
>



Report this thread to moderator Post Follow-up to this message
Old Post
Mark Schupp
12-24-04 01:55 AM


Sponsored Links




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

ASP 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 08:14 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.