simplest way to password protect my site

Discussion in 'Programming' started by mnymkr, May 4, 2007.

  1. #1
    what is the simpleset way to password protect a few pages on my site?
     
    mnymkr, May 4, 2007 IP
  2. quite

    quite Peon

    Messages:
    392
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    im not too good at this, but firstly i think you would need an ssl encryption?
     
    quite, May 7, 2007 IP
  3. Robert Plank

    Robert Plank Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You don't need SSL encryption to password protect a page.

    Does your host have a control panel like cpanel? Those let you password protect folder just by filling in a form.

    If not, use this tutorial: http://tools.dynamicdrive.com/password/
     
    Robert Plank, May 7, 2007 IP
  4. mnymkr

    mnymkr Well-Known Member

    Messages:
    2,328
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    120
    #4
    can't you protect it through htaccess?
     
    mnymkr, May 7, 2007 IP
  5. wvccboy

    wvccboy Notable Member

    Messages:
    2,632
    Likes Received:
    81
    Best Answers:
    1
    Trophy Points:
    250
    #5
    I'd say use a PHP + MySQL option.. it's pretty simple. Just set up a table with the databases and use the PHP code to call the SQL database.

    It's probably the safest option too.
     
    wvccboy, May 7, 2007 IP
  6. Robert Plank

    Robert Plank Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    htaccess is exactly what I suggested above.
     
    Robert Plank, May 7, 2007 IP
  7. 72ndDimension

    72ndDimension Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi,

    The simplest way is to remove anonymous access to the directory containing the pages you want to protect, and setup some form of user control on it. the way you do this depends upon your ISP.

    you could try the link below if you want to do through PHP pages :

    go to phpbuddy dot com and scroll down to simple password protection


    hope that helps.
     
    72ndDimension, May 7, 2007 IP
  8. jgjg

    jgjg Peon

    Messages:
    595
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I second this suggestion :)
     
    jgjg, May 9, 2007 IP