1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Login to view webpage

Discussion in 'PHP & Perl' started by carlfisher, May 25, 2013.

  1. carlfisher

    carlfisher Registered Member

    Joined:
    Aug 7, 2012
    Messages:
    92
    Likes Received:
    32
    Hey guys, not sure if this is the best place for this post.

    Basically I have a website. I have one page that I need to be login/password protected for certain people to view whom I give the details to.

    I don't know much about this, I do know html but nothing with PHP or whatever this will need.

    If someone could help me out, tutorial, links or whatever that'd be greatly appreciated.

    cheers
    Carl
     
  2. LongBanana

    LongBanana Regular Member

    Joined:
    Oct 23, 2009
    Messages:
    411
    Likes Received:
    247
    Location:
    Chicago, IL
  3. Moosey

    Moosey Senior Member

    Joined:
    Dec 5, 2011
    Messages:
    1,043
    Likes Received:
    747
    Password protect the directory from your cpanel. You'll have to manually create the accounts for access but I think that would be the easiest way to accomplish your task.
    You could also do a wp install to a sub directory for that one page and install a plugin for membership access, same idea a little more work. Let me know if you need any assistance.
     
  4. nesterdwarf

    nesterdwarf Regular Member

    Joined:
    May 30, 2008
    Messages:
    276
    Likes Received:
    539
    Location:
    State of Misery...er, Missouri...
    This should help you out -

    Code:
    http://www.phpeasystep.com/phptu/6.html
    
    ND
     
  5. Wister_fr

    Wister_fr Registered Member

    Joined:
    Sep 6, 2012
    Messages:
    62
    Likes Received:
    23
    Location:
    Internet
    Would you do it for Wordpress, or a CMS, or to protect a folder ?

    Will be really simple for WOrdpress: some plugins already exists for this.
    Existing plugins:
    - Magic members (paid and expensive but really useful)
    - WordPress Access Control (opensource and great)

    Or you can do it by yourself by modifing the header file of you theme to redirect any guest to the login form.