[BlueOnyx:01754] Re: protecting directory

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Thu Jul 16 15:49:22 -05 2009


blueonyx at larsi.de wrote:
> Hello list,
> 
> a customer of us wants to secure his images directory. So he planned to put his images dir besides the web dir, so no one could link directly to the images.
> 
> Unfortunatly I have no idea, how to do this. His website uses php, but there is no chance to use sessions. So putting the images dir above the web dir should be the easiest solution for him.
> 
> Could someone tell me, how to tell apache to use this directory for the images?

Hi Lars,
I think you are wanting to prevent hotlinking?   You can commonly do 
that with .htaccess.

Try this:
http://www.javascriptkit.com/howto/htaccess10.shtml

HTH,

-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list