![]() |
| |||||||
| Your Website Questions and (hopefully) answers about setting up your own business or gallery website |
| | Thread Tools |
|
#1
| ||||
| ||||
| How to prevent a directory list from appearing? My brain is a little fried at the moment and I'm not thinking too clearly. Thanks, Jeanie |
|
#3
| ||||
| ||||
| Thanks Doug. I knew it was something simple like that! Jeanie |
|
#4
| ||||
| ||||
| The best is to get your Web host to set the preferences for Apache to not allow browsing of the directories. |
|
#5
| ||||
| ||||
| Al, is that with the .htaccess file? Jeanie |
|
#6
| ||||
| ||||
| Hi Jeanie - I've been trying to figure this out too and read up on the .htaccess stuff but I thought it should be easier than that. I was just in my ftp program deleting some files from the server and when I right click on a folder or file, I noticed a "set permissions" option. Selected that and I got a dialog where I can set permissions and it works. I have stuff on two different servers and it worked on both of them. Hope this helps, Margaret |
|
#7
| ||||
| ||||
| Margaret, Did you set the directory permissions to rwxr--r--? If not, what? Thanks, Jeanie |
|
#8
| ||||
| ||||
| Sorry Jeanie - that doesn't work after all. I could set the permissions so that nobody could see the images folder but then the images wouldn't display in the html page either. I think Doug's way is the easiest - put a blank index.html in the folder - you could dress up the index.html with your logo and an invitation to send you $$ if they really want to get hold of your images. take care, Margaret |
|
#9
| ||||
| ||||
| [/i]Sorry Jeanie - that doesn't work after all. I could set the permissions so that nobody could see the images folder but then the images wouldn't display in the html page either.[/i] That's what I thought! I'm pretty sure that a directory has to have at least execute permissions in order for anyone visiting the website to view the pictures on the webpage - but that also allows them to see everything in the directory (if there's no index.htm file.) I think Doug's way is the easiest - put a blank index.html in the folder - you could dress up the index.html with your logo and an invitation to send you $$ if they really want to get hold of your images. Yes, this idea sounds like a plan. Is there no .htaccess solution or did it just seem too complicated? FWIW, if someone really wants to get ahold of my images, they will. Thanks for the help, Jeanie |
|
#10
| ||||
| ||||
| Sorry for taking so long to reply, I've not been online for a while. If you want to limit access to directory listings, it's best that it's done by the Web host. The file that needs to be modified is httpd.conf, and that's a system file. I can't remember off the top of my head which entry needs to be modified, but will let you know as soon as I get a chance to page thru' the file. |
|
#11
| ||||
| ||||
| Thanks for the additional info Al. I've got the index.htm files set up at this point, but would like to do it "right" once I understand what "right" is. I will ask my webhost. Thanks, Jeanie |
|
#12
| ||||
| ||||
| Jeanie, the directive I used was "IndexIgnore *". You can point the support people at your Web host to this URL. Unfortunately, as I've used it, it's system wide, but instead of the "*", I'm sure there should be a way for them to use your home directory (eg "jeaniesa/*"). I'll speak to one of the boffins here. |
|
#13
| ||||
| ||||
| Thanks Al! Jeanie |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Official Adobe Plugin list | Doug Nelson | Software | 1 | 10-05-2006 07:57 AM |
| Locating directory folder for Elements | BigLar | Hidden Power Support | 3 | 03-21-2004 10:58 AM |
| Majordomo Mailing List manager? | Sanda | Work/Jobs | 0 | 02-14-2003 08:02 PM |