Forum Moderators: phranque
Actually the full link to the picture is "www.mydomain.com/images/mybirthday/pic1.jpg", however if I omit "mybirthday/pic1" and just type in on the address bar "www.mydomain.com/images" i get a list of all files stored in my Images directory, which i have files that i don't want my visitors to view(ie who knows how to get it)
Thank you.
Options -Indexes That will deny access to "directory indexes" without having to add blank or 'fake' index files to all directories that don't have an index page in them.
If you don't have an existing .htaccess file, you can create one. .htaccess files are plain text files, so use an "ASCII editor" like Notepad on Windows, and not a word-processor program or HTML editor.
If you are using a Windows PC to create the file, you will have to name the file "htaccess.txt" (or similar) on the PC, and then rename it to ".htaccess" after you upload it using FTP.
Note that with some FTP clients, system files having names beginning with a period are hidden, so the file may "disappear" from view. If this is the case, most FTP clients can be adjusted to show system files. The method varies -- Just look around in the "options" for your FTP client program. Some may be obvious, like "Show system files" while others may contain only a cryptic reference to "List command". In this latter case, setting the list command to "ls -a" or "ls -al" should work.
Jim
As has been mentioned, you will want to refer to the Apache docs [httpd.apache.org] themselves. There are some notes in the default Apache *.conf files but one of your primary resources will be the Apache documentation itself. You likely have a copy of it installed with your server but you can always go online to read too.