Password protect pages

Discussion in 'Site & Server Administration' started by uca, Dec 12, 2007.

  1. #1
    How should I go about password protecting pages?

    I have found scripts, but they don't look very secure.

    Any hints?

    Thanks!

    :)
     
    uca, Dec 12, 2007 IP
  2. sickanimations

    sickanimations Peon

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're hosting with Apache, I suggest using .htpasswd to protect your page.

    Using .htpasswd, any viewers are required to enter a username and password to see a page.

    This solution is best if you already know who is allowed to see the page - ie. static userbase. If you want people to be able to sign up - this won't work.

    Here's some useful links:
    "Using .htpasswd" - http://www.apacheweek.com/features/userauth
    ".htpasswd Generator" - http://www.htaccesstools.com/htpasswd-generator/
     
    sickanimations, Dec 12, 2007 IP
    uca likes this.
  3. uca

    uca Well-Known Member

    Messages:
    2,242
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    155
    #3
    yeah, that's exactly the case. It's not about sign ups.

    I'll look into those links.

    Thank you very much!

    :)
     
    uca, Dec 12, 2007 IP