title: How To Raise a "File Download" in ASP and prevent hotlink
body: <p>I have this code in PHP:</p>
  
  <pre><code>header("Content-Type: application/vnd.ms-excel");
  header("Content-Type: application/download");
  header("Content-Length: ".filesize($path.$filename));
  header("Content-disposition: attachment; filename=" . urlencode($filename));
  readfile($path.$filename);
  </code></pre>
  
  <p>In first time, i use this in asp:</p>
  
  <pre><code>&lt;%
      Response.AddHeader "content-disposition","attachment; filename=download.xls"
  %&gt;
  </code></pre>
  
  <p>I prevent <strong>"hotlink"</strong> too</p>