n00b webhosting question

WhiteKnight

Platinum Member
May 21, 2001
2,952
0
0
How do I make it so that individual files in a directory on my webpage are viewable but the directory listing is not visible. i.e. Say I have a directory ...\pics and I have a bunch of image files in there. I want people to be able to view the pictures if they are linked directly, but not the full directory listing by just going to ...\pics. I'm sure that this is a very simple permissions setting, but I can't seem to get it to work when I play around with it. Either everything is visible or nothing is.
 

BillGates

Diamond Member
Nov 30, 2001
7,388
2
81
just make an index.html page in that directory and don't put anything in it. it will hide the directory structure and take no work.
 

WhiteKnight

Platinum Member
May 21, 2001
2,952
0
0
Just out of curiosity, what would be the "real" way to do it? What do I do with .htaaccess?