Possible to exempt /Images from form authentication via web.config?

K

Keith Patrick

I have an app with some graphics on the login page, but they won't show up
because the user is not authenticated, so ASP (2.0) is blocking access to
the files. I can expose the /Images path in IIS, but it seems there has to
be a way that I'm having trouble finding to allow /Images to be exempted
from forms authenticatation such that anyone, authenticated or not, can view
the application's images. Any tips on a config section or way to do this?
 
B

Brock Allen

use a <location> element in web.config:

<configuration>
<location path="images">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>
 
Joined
May 23, 2006
Messages
2
Reaction score
0
Similarly, how do you restrict access to particular directories or resources

Hi All,

How do you restrict access to particular directories or resources? Can this be done in a similar fashion using the web.config file?

Rype69
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top