title: how to allow download access to specific folder only in App_Data asp.net mvc
body: <p>I have this in my web.config:</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;security&gt;
        &lt;requestFiltering&gt;
          &lt;hiddenSegments&gt;
            &lt;add segment="UserFiles"/&gt;
          &lt;/hiddenSegments&gt;
        &lt;/requestFiltering&gt;
      &lt;/security&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>I think I am going about this the wrong way, but I can't seem to find the right way to google this. I want to grant download access to only that folder 'UserFiles'. I need to do this via the web.config since the live environment will be on Azure, so I will not have a machine to RDP into to change this is IIS. </p>