I would like the ability to be able to DISABLE direct access to files EXCEPT when viewed through a link that is clicked from my web page. For instance, if someone right clicks on the link, and copies the location, pastes it into IE and hits enter, I want it so the web server DENYs them the right to view the file. Only if they CLICK the link will they be able to view the file. I realize that this may be an apache setting, or some tricky javascript code, but I am not sure what to do. I run a linux box with apache and php 4.2.2. If anyone knows a way to do this, it would be great!
Check the referer or the page.
If its matches your site, let them in, if not, don't.
If links are access via someone typing the URL into the address bar, the referer will be empty.
$HTTP_REFERER is I think the right one.