Re: Resource protected by Form based aythetication

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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>
>>
>>
>>


.



Relevant Pages

  • Re: Consolidating images in one folder in wwwroot
    ... Steve C. Orr, MCSD, MVP ... > with the new file & folder.. ... map a virtual directory to this common images ... >> Steve C. Orr, MCSD, MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Radio Buttons & Hyperlinks?
    ... The new image files I added carried the .JPG ... The problem I have is that some of the images I am using do not show up, ... The relevant CSS is: ... buttons to send a person to a particular page depending on what radio ...
    (alt.html)
  • Re: Where to store image files in Java web app
    ... Every time I modify the app and have to redeploy it, ... and extract all of those image files even though they never change. ... My point is that if you need those images in the new deployment, you'd have to transfer them anyway. ... If the company changes OS or app server, ...
    (comp.lang.java.programmer)
  • Re: Adjusting jpeg quality options in Paste Special for PP 2007
    ... Thank you, Steve. ... Consider pasting the images into an image editing program. ... Amazing PPT Hints, Tips and Tutorials ...
    (microsoft.public.powerpoint)
  • Re: saving ppt to word with pic/graphical objects
    ... "Steve Rindsberg" wrote: ... just want plain text and images. ... > will give you the original images in the folder of HTML stuff that PPT creates. ... > Slide Master in PowerPoint to eliminate the graphics. ...
    (microsoft.public.powerpoint)