Forbidden directories?

Discussion in 'Site & Server Administration' started by crazyhorse, Apr 16, 2005.

  1. #1
    Hi

    I want to forbid others to view certian directories.

    I found this code that should do the job.

    
    AuthUserFile /hsphere/local/home/media/.htpasswd
    AuthGroupFile /dev/null
    AuthName 'Members only'
    AuthType Basic
    <limit GET>
    require valid-user
    </Limit>
    
    ErrorDocument 401  /401.html
    ErrorDocument 404  /404.html
    ErrorDocument 500  /500.html
    
    Code (markup):
    In this .htaccess file there are two paths, the above is simple thats my servers path where the files are located. However i dont know what to second one is for and what i should add there. The above authgroupfile path is from the example code i found and i cant see it on my own server. Any ideas on what path i should choose?
     
    crazyhorse, Apr 16, 2005 IP
  2. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    /dev/null is a device, anything you send there is lost in oblivion.

    In this case AuthGroupFile file is not needed, so /dev/null is used, as basically an empty file
     
    nullbit, Apr 16, 2005 IP
  3. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Much appreciated ;)
     
    crazyhorse, Apr 16, 2005 IP