How to hide directory contents

Hi all,

Very noob-like question:
I’m trying to figure out how to hide file names. As an example, if a random person were to type in www.domainname.com/system/, I want to make sure the contents of the ‘system’ folder would be hidden.

Could I just re-direct them to the home page (how?) or would that interfere with the files in the folder?

Thanks Mittineague,
I’ve never tried that before. I’ll look into it. I’ve created index.php files for each folder, but your idea might work for what I need.

-WTL

I think another good idea - if you have Apache - is to add this to your htaccess file

Options -Indexes

Thanks! That’s what I’m going to do!

The simplest way is to upload an index.html page to that directory so they see that instead of the file list.

I usually use the index.htm in each folder method as well to keep prying browsers from seeing the contents.

If you want to be a little mischievous you could put a flashing <h1> in the index.htm saying their ip address has been recorded and their personal details have been sent to the appropriate authorities :smiley:

or

that a virus or key logging program has been successfully downloaded onto their pc :shifty: