Authenticate windows folder security with ASP?
am 05.09.2007 00:48:46 von Chad Richardson
I have created an appln in ASP to upload some files. and
through my appln when i click the link i can view them.
but if i know the path where the files are stored, i can
just type in the url in my browser and still open the
file. i want to avoid other people from viewing these
files and only want them to open through my appln.
How can this be achieved? Also this application is hosted
with a hosting company on a shared server...so not sure if there
are limitations as to the solution in that environment.
Thanks,
Chad
Re: Authenticate windows folder security with ASP?
am 07.09.2007 20:50:42 von Anthony Jones
"Chad Richardson" wrote in message
news:uqsaRX07HHA.4584@TK2MSFTNGP03.phx.gbl...
> I have created an appln in ASP to upload some files. and
> through my appln when i click the link i can view them.
> but if i know the path where the files are stored, i can
> just type in the url in my browser and still open the
> file. i want to avoid other people from viewing these
> files and only want them to open through my appln.
> How can this be achieved? Also this application is hosted
> with a hosting company on a shared server...so not sure if there
> are limitations as to the solution in that environment.
>
In IIS change the security settings for directory holding these files so
that neither anonymous nor any other form authentication is allowed. This
will block all direct access via HTTP. However ASP code will still be able
to access them.
--
Anthony Jones - MVP ASP/ASP.NET