RetouchPRO

Go Back   RetouchPRO > Business > Your Website

Notices

Your Website Questions and (hopefully) answers about setting up your own business or gallery website

Reply
 
LinkBack Thread Tools
  #1  
Old 03-15-2003, 11:37 AM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
How to prevent a directory list from appearing?

OK, I know I should know this and I know it's there's an easy solution... What do I need to do to prevent people from getting a list of all of my files when they go to subdirectory on my site (i.e., images.) Do I need to set the directory permissions differently? If so, what? (My webhost uses Linux servers.) Or do I need to put an "index.htm" file in each directory (even if it only contains images) to redirect to the home page? Or what?

My brain is a little fried at the moment and I'm not thinking too clearly.

Thanks, Jeanie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #2  
Old 03-15-2003, 04:25 PM
Doug Nelson's Avatar
Janitor
 
Join Date: Aug 2001
Posts: 3,920
Blog Entries: 20
Put a blank index.html file in the directory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #3  
Old 03-15-2003, 05:57 PM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
Thanks Doug. I knew it was something simple like that!

Jeanie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #4  
Old 03-15-2003, 06:06 PM
BigAl's Avatar
Senior Member
 
Join Date: Feb 2002
Location: South Africa
Posts: 497
The best is to get your Web host to set the preferences for Apache to not allow browsing of the directories.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #5  
Old 03-15-2003, 07:11 PM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
Al, is that with the .htaccess file?

Jeanie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #6  
Old 03-16-2003, 09:20 AM
winwintoo's Avatar
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 919
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #7  
Old 03-16-2003, 09:50 AM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
Margaret,

Did you set the directory permissions to rwxr--r--? If not, what?

Thanks,
Jeanie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #8  
Old 03-16-2003, 10:16 AM
winwintoo's Avatar
Senior Member
 
Join Date: Feb 2002
Location: Regina, Saskatchewan
Posts: 919
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #9  
Old 03-16-2003, 10:32 AM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
[/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. Even if I put an index.htm file in each directory, someone could still type in the full path name to the JPG file and easily view it. I just don't want people to be able to see the full list of my files in each directory.

Thanks for the help,
Jeanie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #10  
Old 03-16-2003, 11:39 PM
BigAl's Avatar
Senior Member
 
Join Date: Feb 2002
Location: South Africa
Posts: 497
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #11  
Old 03-17-2003, 01:03 AM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #12  
Old 03-17-2003, 05:16 AM
BigAl's Avatar
Senior Member
 
Join Date: Feb 2002
Location: South Africa
Posts: 497
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
  #13  
Old 03-17-2003, 08:48 AM
jeaniesa's Avatar
Senior Member
 
Join Date: Aug 2001
Location: Colorado foothills
Posts: 1,826
Thanks Al! I was looking at some Apache documentation last night, but I don't think I would have chosen that particular directive just looking at the list of them.

Jeanie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Float This Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Share this post on Facebook
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Official Adobe Plugin list Doug Nelson Software 1 10-05-2006 06:57 AM
Locating directory folder for Elements BigLar Hidden Power Support 3 03-21-2004 09:58 AM
Majordomo Mailing List manager? Sanda Work/Jobs 0 02-14-2003 07:02 PM


All times are GMT -6. The time now is 12:32 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 Doug Nelson. All Rights Reserved




1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51