Help with htaccess


#1

I cant seem to figure this out. Basically I have alot of files within directory. I’ll give an example. in my "nameofwebsite.com/vids/ directory I have a few files. I want to be able to link to them but I dont want people to see all the file within that directory, by going straight to it. How can I limit access to viewing all the files within a directory.


#2

The easiest way to prevent directory browsing is to have an index page in the folder you are trying to protect.

Alternatively, add the following line to your .htaccess file:

Options -Indexes--------------------
Simon Jessey
Keystone Websites | si-blog


#3

Read through this thread:

http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_beginners&Number=18646


MacManX.com


#4

Great help Thanks guys.