password protected .Mac public folder

Jump to First Reply
zozo
Posted:
in Genius Bar edited January 2014
I saw that some people can require a password to access subfolders of the File Sharing page of a .Mac account/website.



How the heck do I do this?



I added a folder in my Public folder, but where can I determine if a password is required to enter it?



thanx

Comments

  • Reply 1 of 3
    What you need to do is drop a .htaccess file into the directory you want to password protect. There is probably a help page somewhere on the .mac help that can tell you the exact parameters for the .mac system, but to get started, here is a generic one.



    This file uses the system authentication system, and access is controlled via the "require user" line. The users you list here must have a standard account on the system.



    You can tell the .htaccess file to use your own passwd file, but that is quite a long tutorial. I am sure there are many websites (google will find them for you) that can write it much better than I.



    Code:




    #Access file

    order allow,deny

    allow from all

    require user username1 username2 etc

    Authname WebStats

    Authtype Basic

    AuthAuthoritative off

    AuthPAM_Enabled on





     0Likes 0Dislikes 0Informatives
  • Reply 2 of 3
    torifiletorifile Posts: 4,024member
    The iDisk tab of your internet preferences.
     0Likes 0Dislikes 0Informatives
  • Reply 3 of 3
    zozo Posts: 3,117member
    I wanted to make a SUB folder password protected, not the main one. I've seen that around and cant remember the site anymore now, otherwise I'd contact the author.



    I'll try that script you sugested before, thankx
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.