Protecting files

T

tshad

How would I protect all my files from someone getting access to my
asp,htm,gif,jpg etc. files?

I can protect my .aspx files using Forms Authentication and dropping the
following in my specific folders.

<configuration>
<system.web>
<authorization>
<deny users="?" />
<deny users="tSmith" />
</authorization>
</system.web>
<location path="default.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="addLogin.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

But this only seems to work with aspx files

Thanks,

Tom
 
G

Guest

How would I protect all my files from someone getting access to my
asp,htm,gif,jpg etc. files?

In IIS, you need to map all document types to the ASP.NET ISAPI filter. I
think by default only ASP* file types are mapped to it.
 

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,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top