Solved

ASP.NET restrict folder view access

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

20 Experts available now in Live!

Get 1:1 Help Now