title: Prevent file browsing
body: <p>I have two questions as below: </p>
  
  <p>First,I provided the file download functionality to the user, but when user copies the URL and paste in another browser, I do not want the download to get started start, instead I want this to be started only when user navigates from link in the application.</p>
  
  <p>Second how to prevent file browsing in asp.net? I tried </p>
  
  <pre><code>&lt;directoryBrowse enabled="false"/&gt;
  </code></pre>
  
  <p>in web.config. but was not useful.</p>