Solved

ASP.NET restrict folder view access

Posted on 2010-11-21
1
411 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET e-commerce website 4 59
New to Angular (read tutorial) - How do I bind to this table? 11 45
asp.net mvc return json 2 56
Syntax error 9 45
AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now