PDA

View Full Version : Images directory


Damian
03-22-2001, 09:24 PM
Question: Can I chmod my images directory so the world can't view the images there?

Would this effect (affect?) the way images load on my pages?

prymal
03-22-2001, 09:42 PM
well, to put it simply, if you chmod the directory other than what it is currently set for, it will definitely have an effect on images that are called from that directory. in other words, if you make it so only you can only read it, it won't show up.

why would you want to do this in the first place?

Damian
03-22-2001, 09:46 PM
Cool...that answers my question....I don't have any real reason to do it...I was just curious.

RandMan
03-23-2001, 12:54 AM
Put an index.html file in your images directory. That way they can't get a directory listing. You could either give them a mild tongue lashing or redirect them to another page.

You could also alter/setup your .htaccess file.

It is a good idea to include an index.html file in any directory, even if you don't plan to use it.

Damian
03-23-2001, 11:02 AM
I feel completely and totally dumb...I never even thought of putting an index file in that directory...

thanks so much for the help!

Wacky