Password Protecting A Directory...

Discussion in 'HTML & Website Design' started by Meads, Sep 23, 2006.

  1. #1
    I need to password protect a directory on my server cant get it working using .htaccess is there any other way can do it?

    Thanks
     
    Meads, Sep 23, 2006 IP
  2. iowadawg

    iowadawg Prominent Member

    Messages:
    10,918
    Likes Received:
    811
    Best Answers:
    0
    Trophy Points:
    380
    #2
    Go to your cpanel, click on the icon that says "password protect directories".
    ONce inside, just find the directory you want to protect.
     
    iowadawg, Sep 23, 2006 IP
  3. Meads

    Meads Well-Known Member

    Messages:
    547
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    123
    #3
    I dont use cpanel on my server cant afford it ;)
     
    Meads, Sep 23, 2006 IP
  4. melol2

    melol2 Active Member

    Messages:
    511
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Try adding an index.php or index.htm to the directory that asks for a password.
     
    melol2, Sep 23, 2006 IP
  5. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can protect access to services using php auth
    but, you will not protect files in directory, so the only way is .htaccess, or
    php + file wrapper + mod_rewrite - the last is hard solution
    What hosting do you use? you can create .htaccess and passwd file yourself
     
    intoex, Sep 24, 2006 IP
  6. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #6
    eXe, Sep 24, 2006 IP
  7. intoex

    intoex Peon

    Messages:
    414
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Sure it's not a protection, it's protection from kids... thoght not from smart kids :)
     
    intoex, Sep 24, 2006 IP