Results 1 to 6 of 6

Thread: Login/Password System

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    At my computer
    Posts
    187

    Login/Password System

    I'm trying to make a website with some recorded conference calls that needs to be password protected.... (only pre-approved users can log in in order to hear the calls). I have no idea where to start except that PHP is probably what I need. I know zero about PHP or databases....

    Does anyone know where there are tutorials on login systems or ones on PHP that would be useful, or where I could even possibly get a full working example?

    Thanks....

    - Allen
    - Visual Basic 6.0
    - Windows XP Home

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Why don't you just password with the .htaccess file?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    At my computer
    Posts
    187
    I can do that ?

    Sounds easier.... how do I do that ?

    <feels [very] stupid for lack of knowledge>
    - Visual Basic 6.0
    - Windows XP Home

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Yes, you can. But I guess I should have mentioned it's an Apache thing. But if that's what your webserver uses, then you're good.

    Give this a look: http://www.euronet.nl/~arnow/htpasswd/

    It's an annoying looking webpage, but it basically generates the file you need to upload to the folder to password protect it.

    It also has some documentation on how to use it: http://www.euronet.nl/~arnow/htpassw...mentation.html

    Good luck.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    At my computer
    Posts
    187
    Thanks much for the links... I will try that out. Dunno what the server is running, but I guess I'll find out .

    Thanks for your help !

    - Allen
    - Visual Basic 6.0
    - Windows XP Home

  6. #6
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065
    In a .htaccess file add this:
    Code:
    # FULL System Path To Your .htpasswd File
    AuthUserFile "E:/servers/root/vhosts/phpmyadmin/.htpasswd"
    
    # We dont have a Group So Tell The Server That
    # /dev/null = Not Exsistant
    AuthGroupFile /dev/null
    # Give it a name, This should do though
    AuthName "Access Requires Name + Password"
    
    # Leave This Line As Is
    AuthType Basic
    
    # Add Usernames Below 
    # No spaces In Names, 1 Space Between Each
    require user UserName1 UserName2 UserName3
    And now in a .htpasswd file add the following:

    Code:
    UserName1:Password1
    UserName2:MySecondPassword
    UserName3:ThirdPassword
    UserName*Colon*Password

    it is REALLY handy to keep the .htpasswd files out of the web directory, IE: if you have entire system access, make a new directory for .htpasswd files, and then stop any user going by adding in a .htaccess:

    Code:
    Deny From All
    It should then work for you
    Wayne

Posting Permissions

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



Click Here to Expand Forum to Full Width