Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



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

Posts: 14
Location: Toronto, ON. Canada
Trades: 0
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!
 
 
Register now for full access!
Old 07-11-2003, 07:00 AM
Average Talker

Posts: 25
Trades: 0
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 -
Please login or register to view this content. Registration is FREE

Neutral Web - Redefining Hosting - Multiple Domain Hosting

Please login or register to view this content. Registration is FREE
- Rock solid DUAL XEON Servers.

Please login or register to view this content. Registration is FREE
- 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, 07:05 AM
Novice Talker

Posts: 14
Location: Toronto, ON. Canada
Trades: 0
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, 07:19 AM
Average Talker

Posts: 25
Trades: 0
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 -
Please login or register to view this content. Registration is FREE

Neutral Web - Redefining Hosting - Multiple Domain Hosting

Please login or register to view this content. Registration is FREE
- Rock solid DUAL XEON Servers.

Please login or register to view this content. Registration is FREE
- 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, 07:30 AM
Novice Talker

Posts: 14
Location: Toronto, ON. Canada
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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 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.25214 seconds with 12 queries