Reply
protecting image folders? htaccess or html page?
Old 07-11-2003, 04:51 AM protecting image folders? htaccess or html page?
Novice Talker

Posts: 14
Location: Toronto, ON. Canada
I have recently begun using htaccess files a lot. For error pages and hot linking etc.

But when it comes to image directories how do you prevent anyone seeing the whole directory when you go to it? Of course an html document in the folder would work... but what if you had a gazillion sub folders of images? Putting an html document in each and every one of them would suck!

So surely there's a way with an htaccess file? So that you can see the images but not the image folder. Hope that makes sense?

Regards,
Shannon
Down the Garden Path
__________________
Some people have a way with words. While others erm.. thingy.
LadyLarke is offline
Reply With Quote
View Public Profile Visit LadyLarke's homepage!
 
When You Register, These Ads Go Away!
Old 07-11-2003, 08:00 AM
Average Talker

Posts: 25
If you are on a Cpanel server, there is a setting within the control panel to disable a directory listing. If you use that setting, you can ensure the folks can't browse your directories and only through the proper links they'll know the file name/image.

If not using CPanel, you can always create your own .htaccess. Keep it in the top directory - above your html directory ( so that its settings are right across all the below subfolders )

Put a .htaccess file in your /home or equivalent directory.

In it put

Options -Indexes

That will stop directory viewing when no index file is present.

Warm Regards,
__________________
Allwin Agnel - sales@neutralweb.com
Neutral Web - Redefining Hosting - Multiple Domain Hosting
http://www.neutralweb.com - Rock solid DUAL XEON Servers.
http://forum.neutralweb.com - Check out what our clients think about us.

NW-Allwin is offline
Reply With Quote
View Public Profile Visit NW-Allwin's homepage!
 
Old 07-11-2003, 08:05 AM
Novice Talker

Posts: 14
Location: Toronto, ON. Canada
that's it?

just

Options - Indexes

and that will prevent folders without index pages from being viewable?

I do have cpanel but cannot see in there where to do such a thing
__________________
Some people have a way with words. While others erm.. thingy.
LadyLarke is offline
Reply With Quote
View Public Profile Visit LadyLarke's homepage!
 
Old 07-11-2003, 08:19 AM
Average Talker

Posts: 25
Its Options -Indexes , not Options - Indexes.

Its a simple syntax which says, use Options and -(negative - no) Indexes

Maketh sense ?

As for Cpanel, if you are using bluelagoon as the skin, the option can be found under :

Site Management : Index Manager
__________________
Allwin Agnel - sales@neutralweb.com
Neutral Web - Redefining Hosting - Multiple Domain Hosting
http://www.neutralweb.com - Rock solid DUAL XEON Servers.
http://forum.neutralweb.com - Check out what our clients think about us.

NW-Allwin is offline
Reply With Quote
View Public Profile Visit NW-Allwin's homepage!
 
Old 07-11-2003, 08:30 AM
Novice Talker

Posts: 14
Location: Toronto, ON. Canada
Thank you so much!
__________________
Some people have a way with words. While others erm.. thingy.
LadyLarke is offline
Reply With Quote
View Public Profile Visit LadyLarke's homepage!
 
Reply     « Reply to protecting image folders? htaccess or html page?
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12640 seconds with 12 queries