Solved

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

Posted on 2008-06-25
1
163 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
ID: 21876222
place this in your web.config  

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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Host asp.net pages 5 26
Connection String 16 43
Master Content Pages, WebForms, and Session Variables 1 35
designing in object programming 12 52
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 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

25 Experts available now in Live!

Get 1:1 Help Now