Forbidden

Discussion in 'Apache' started by badmasketa, Jul 10, 2008.

  1. #1
    how to forbid the visitors from accessing some folders of FTP?

    suppose i have mydomain.com/images i want that images folder not to directly access , how is that done??

    any idea??
     
    badmasketa, Jul 10, 2008 IP
  2. hostrs.com

    hostrs.com Peon

    Messages:
    157
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Change the permissions. Do it via FTP by right clicking on the folder you want to make private and select permissions. Then un select everything except for the owner column. Or you can ssh into your server:
     
    hostrs.com, Jul 12, 2008 IP
  3. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #3
    Hmm.. if I understood you correctly, you do not wish some visitors to be able to access the folder directly? But they can view the images from that folder linked on your html pages, right? You should disable then just folder browsing from .htaccess file. Create an .htaccess file, and upload it to that images folder, and put this into it:

    
    Options -Indexes
    
    Code (markup):
     
    pr0t0n, Jul 13, 2008 IP