Protect Files in Web.Config?

B

bradwiseathome

I have a web.config section that only allows certain groups into a
subdirectory. Is it possible to specify that only some types of files
(example .htm) should be protected and the rest are unprotected?

Thanks.
 
D

Dominick Baier [DevelopMentor]

Hello (e-mail address removed),

you can't use wildcards on the <locaction files..../> section

but be careful - htm (or more generally speaking every extension that _isn't_
handled by asp.net) isn't affected by the authorization element in web.config

for these kind of files - IIS uses the IUSR_ account to retrieve them - you
can place NTFS ACLs on them, e.g.
 

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

Forum statistics

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

Latest Threads

Top