Restricting images from direct url download
<p>I asked this question a while ago and got an answer that I thought would work but I'm still having an issue. Maybe it's something I'm doing wrong but I still don't have this right.</p>

<p>I want to restrict access to an entire directory. This directory has images and pdf files in it. I need to create a link to the pdf documents and embed in an anchor tag, the images. I was told to use header for this. Using header immediately outputs the content which works great for the pdf document but I have to embed 3 images from the same directory and this doesn't work because header outputs the image before the html and that's correct behavior.</p>

<p>I need a way to assign the image to a variable so that I can embed it where I need it after the html has been outputted. Any ideas?</p>

<p>Here is a link to my last question.
<a href="http://stackoverflow.com/questions/5485045/how-to-restrict-viewing-files-within-a-directory">How to restrict viewing files within a directory</a></p>
