Submit Your Article Forum Rules

Results 1 to 7 of 7

Thread: need help

  1. #1

    need help

    I'm building a web site I want to setup user ID and Password I dont know how to do this. Is this a data base function that is setup by php or mysql and how do I start it? help please thanks
    Thanks For Your Time Gene Crain
    http://www.justwebsitedesign.com

  2. #2
    Senior Member Narasinha's Avatar
    Join Date
    Aug 2003
    Posts
    230

    Password Protection on Web Sites

    There are several ways that you can make part of a web site accessible only to those who have a valid username and password. One of the easiest and most flexible methods is to use an .htaccess file. If your web server software is Apache (or similar flavor), these files can be used for a variety of purposes like custom 404 error pages, URL redirection, directory indexes, password protection, etc.

    http://resma.net/tutorials/htaccess.php has a nice tutorial on setting up a password protected directory. You create the .htaccess file which contains instructions to the server about that directory. You create an .htpasswd file which contains the usernames and passwords. There is an online tool that you use to create the encrypted passwords for that file. If you simply put in plain text for the passwords, then you're going to have problems.

    Hope this helps.
    - [url=http://unrelated.dexterityunlimited.com/Relatively Unrelated[/url]

  3. #3
    Senior Member redcircle's Avatar
    Join Date
    Aug 2003
    Posts
    424
    If you want to integrate the logon screen into the design like this forum you would have to use some server-side scripting language. .htaccess only allows for the ugly popup login window.
    www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
    www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.

  4. #4

    Thanks for the reply

    Looks like this SSL is the way I would like to go any advice on where to get started from? Need very basic info to get a grasp on the project I wish to start.
    Thanks For Your Time Gene Crain
    http://www.justwebsitedesign.com

  5. #5
    Senior Member redcircle's Avatar
    Join Date
    Aug 2003
    Posts
    424
    You need to get a certificate from a 3rd party like verisign or thawte.. there are also cheaper ones that may handle what you need to do..

    Basically the only thing SSL will do is make sure the connection is secure you will still need to impliment the login/password problem.
    www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
    www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.

  6. #6
    WebProWorld MVP minstrel's Avatar
    Join Date
    Jul 2003
    Location
    Ottawa, Canada
    Posts
    2,553

    Re: Password Protection on Web Sites

    Quote Originally Posted by narasinha
    There are several ways that you can make part of a web site accessible only to those who have a valid username and password. One of the easiest and most flexible methods is to use an .htaccess file. If your web server software is Apache (or similar flavor), these files can be used for a variety of purposes like custom 404 error pages, URL redirection, directory indexes, password protection, etc.
    However, as far as I know, the .htaccess file will not work on an NT server...

  7. #7

    thanks for the info

    thanks for the input and leads on how to get started
    Thanks For Your Time Gene Crain
    http://www.justwebsitedesign.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •