Reply
Protecting folders with chmod
Old 04-06-2008, 11:32 PM Protecting folders with chmod
Average Talker

Posts: 19
Hello,

I am using an online membership script and would like to protect a folder so that the images are protected. The content in the script is located in a MySQL database, but the images are located on the server.

How can I protect the folder with Chmod so that no one can see the magazine/issues/april2008 folder when placed in the address bar, but the images are visible when accessing the content?

I have tried 711, 600 and 700 with no luck so if anyone have any other suggestions I would appreciate it.
sam18204 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-06-2008, 11:43 PM Re: Protecting folders with chmod
vangogh's Avatar
Post Impressionist

Posts: 8,441
Name: Steven Bradley
Location: Boulder, Colorado
Is the idea that you don't want people seeing the list of images if they access the folder? If so just place a blank index.html in the folder. If people then try to access the folder they'll get served the blank html page instead.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-07-2008, 10:13 AM Re: Protecting folders with chmod
Average Talker

Posts: 19
Thanks for your reply vangogh, it worked great!
sam18204 is offline
Reply With Quote
View Public Profile
 
Old 04-07-2008, 05:44 PM Re: Protecting folders with chmod
joder's Avatar
Flipotron

Posts: 6,361
Name: James
Location: In the ocean.
You can also accomplish with a .htaccess file
<Directory /magazine/issues/april2008>
Options -Indexes
</Directory>

Can't remember if it is - or +
joder is offline
Reply With Quote
View Public Profile
 
Old 04-07-2008, 07:45 PM Re: Protecting folders with chmod
vangogh's Avatar
Post Impressionist

Posts: 8,441
Name: Steven Bradley
Location: Boulder, Colorado
James I want to say it's + but I'm not remembering either.

Glad to help Sam
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Protecting folders with chmod
 

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.13155 seconds with 13 queries