title: How can I block direct access to images in a directory but allow PHP to display them?
body: <p>I'm using a .htaccess file with the following code:</p>
  
  <pre><code>Order deny, allow
  Deny from all
  Allow from localhost
  </code></pre>
  
  <p>But when I display the images I'm just putting a link to the image in an  tag, but the images are not showing up.</p>
  
  <p>How can I display the image but disallow direct access to it? Is there a way for me to just copy the raw bytes of the file and display them?</p>