title: How to block direct download file
body: <p>My website contains some download content. I want to access download this file only for logged in user.</p>
  
  <p>If user type direct file url in browser it show forbidden page if user not logged in. Am not using any CMS.
  Direct File Link: localhost/files/questions/20160917070900-w2CdE9LZpE.zip</p>
  
  <p>I searched on net but failed to find any good answer. Please suggest me how can I do it.</p>