title: DENY direct download of file using php
body: <p>I have <code>.doc</code> and <code>.zip</code> files in download directory on my server. 
  whoever visit my site page (<code>download-file.php)</code> only those user should be able to download these files and other should not.</p>
  
  <p>I am trying to achieve above but no luck...</p>
  
  <p>I am still able to put direct file address (<code>http://example.com/sample.doc</code>) in browser and I am able to download which I don't want..even someone else giving link to above file on any website then also download should not happen.</p>
  
  <p>Could any one please share some idea..how i should achieve this.</p>
  
  <p>Thank you in advance.</p>