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.
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:
Read through this thread:
Great help Thanks guys.