Solved

How do I secure a web directory from the Internet completely?

Posted on 2008-06-25
1
160 Views
Last Modified: 2013-11-07
I have a ASP.NET 2.0/3.5 website with a "PrivateDocs" folder that I only access thru FTP. I know that placing a Web.config file is just about equivalent to Apache's .htaccess file. But what do I put in the Web.config file to block any possible access to those files within that private folder (except thru FTP permission)?
0
Comment
Question by:bemara57
1 Comment
 
LVL 7

Accepted Solution

by:
maXXXeE earned 500 total points
Comment Utility
place this in your web.config  

<location path="PrivateDocs">
    <system.web>
      <authorization>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

10 Experts available now in Live!

Get 1:1 Help Now