[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

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

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
bemara57
Asked:
bemara57
1 Solution
 
maXXXeECommented:
place this in your web.config  

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now