Re: Resource protected by Form based aythetication
- From: "Steve C. Orr [MVP, MCSD]" <Steve@xxxxxxx>
- Date: Mon, 18 Apr 2005 10:12:24 -0700
Correct.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"david" <david@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F03CE213-3242-4D77-8F05-5E5E2FC83A9F@xxxxxxxxxxxxxxxx
> Hi, Steve:
> Thank you very much.
> You mean that I can use Response.WriteFile instead of Response.write. Am I
> right?
>
> David
>
> "Steve C. Orr [MVP, MCSD]" wrote:
>
>> Brock's suggestion of using IIS to manage the permissions is a good one.
>> Another approach is to manually manage the permissions of your files by
>> keeping them in a database or a private folder. Then you can use
>> Response.Write after you've determined the user has the necessary
>> permissions.
>>
>> Here's more info:
>> http://steveorr.net/articles/EasyUploads.aspx
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpresponseclasswritefiletopic.asp
>>
>> --
>> I hope this helps,
>> Steve C. Orr, MCSD, MVP
>> http://SteveOrr.net
>>
>>
>>
>> "david" <david@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:D4FEEC19-D228-44AD-8887-0C467FEB9D34@xxxxxxxxxxxxxxxx
>> >I can not figure out what is the problem that I can protect ASP.NEt form
>> > resource but not some other type of files, for example, images.
>> > All my aspx forms located in Demo folder and image files located in a
>> > subfolder of Demo, named images. I implement Role based form
>> > authentication.
>> > When I access all aps forms, it works fine and ask me user/password.
>> > However,
>> > I can use IE browser to directly access any image file in subfolder
>> > images.
>> >
>> > My configuration:
>> > <authentication mode="Forms">
>> > <forms name="AuthCookie" loginUrl="login.aspx" path="/"
>> > protection="All"> </forms>
>> >
>> > </authentication>
>> > <authorization>
>> > <deny users="?" /> <!--deny anonymous users-->
>> > <allow users="*" /> <!-- Allow all users -->
>> > </authorization>
>> > <location path="images">
>> > <system.web>
>> > <authorization>
>> >
>> > <deny users="?" />
>> > </authorization>
>> > </system.web>
>> > </location>
>>
>>
>>
.
- References:
- Resource protected by Form based aythetication
- From: david
- Re: Resource protected by Form based aythetication
- From: Steve C. Orr [MVP, MCSD]
- Re: Resource protected by Form based aythetication
- From: david
- Resource protected by Form based aythetication
- Prev by Date: Re: is there problem to work with vs.net on web application and also to the iis to serve web clients ?
- Next by Date: How to get the values from multiple selection in the List Box (ASP.NET program)
- Previous by thread: Re: Resource protected by Form based aythetication
- Next by thread: asp.net
- Index(es):
Relevant Pages
|