Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > controlled access in fso

Reply
Thread Tools

controlled access in fso

 
 
WC Justice
Guest
Posts: n/a
 
      12-23-2004
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


 
Reply With Quote
 
 
 
 
Mark Schupp
Guest
Posts: n/a
 
      12-23-2004
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" <> wrote in message
news:HVEyd.14148$...
>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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP FSO File Name Problem KEN ASP .Net 1 07-26-2007 06:55 AM
How to let FSO access netware folder ? Tim Tyteca Javascript 2 08-22-2006 03:50 PM
IIS6 & FSO remote server access ASP General 0 04-08-2005 10:36 AM
fso tutorial Paul ASP General 3 07-17-2003 03:14 PM
Multiple delete of files with FSO error NIck ASP General 0 07-15-2003 02:30 PM



Advertisments