Solved

ASP.NET restrict folder view access

Posted on 2010-11-21
1
413 Views
Last Modified: 2012-05-10
I'm building a VS2010 ASP.NET website and have an error log folder for saving updated error messages.  I do not want users to be able to browse my "ErrorLogs" folder, which is on the top level of the site.  Here's my current web config markup, but it seems to not be working.  What is wrong with my path?

<location path="ErrorLogs">
            <system.webServer>
                  <directoryBrowse enabled="false"/>
            </system.webServer>
      </location>

Where in the web config should this be?  I cannot locate any reference for this code.

Thanks.
0
Comment
Question by:Phil5780
1 Comment
 
LVL 21

Accepted Solution

by:
Alfred1 earned 500 total points
ID: 34184736
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tutorial for ebay api 3 56
RLDC Reporting in Visual studio 11 31
Convert Select to DropDownListFor MVC 5 2 31
exporting html table data 4 28
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question