GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Apr-2006, 16:18
Zicon Zicon is offline
New Member
 
Join Date: Apr 2006
Posts: 2
Zicon is on a distinguished road

.htaccess with e-mail address and password


Hey,

Is there anyway to have a directory proctected using .htaccess but instead of creating usernames and passwords they have to use thier e-mail address as the username and thier e-mail address password as the password

Many thanks
  #2  
Old 21-Apr-2006, 11:37
Lev Lev is offline
New Member
 
Join Date: Apr 2006
Posts: 3
Lev is on a distinguished road

Re: .htaccess with e-mail address and password


Make the username their email address and the password the email password maybe? Or do you mean for many accounts?
  #3  
Old 21-Apr-2006, 17:24
Zicon Zicon is offline
New Member
 
Join Date: Apr 2006
Posts: 2
Zicon is on a distinguished road

Re: .htaccess with e-mail address and password


I was hoping to create it for many users.
  #4  
Old 03-Sep-2006, 13:35
Amaroq Amaroq is offline
New Member
 
Join Date: Sep 2006
Location: Illinois
Posts: 5
Amaroq is on a distinguished road

Re: .htaccess with e-mail address and password


Write a php file that re-writes the .htaccess file and inserts whatever username/password you specify in a form?
  #5  
Old 11-Sep-2006, 15:38
watchdoghosting watchdoghosting is offline
Awaiting Email Confirmation
 
Join Date: Sep 2006
Posts: 9
watchdoghosting is on a distinguished road

Re: .htaccess with e-mail address and password


Amaroq is correct. If you are on a linux box, all you would need is to create a page with a form on it, that has a field for the username and password. The form would then contact the PHP script, and the script would run htpasswd and then paste those results into your htpasswd file.

Running the htpasswd command is very important, because that generates the hash for the password you specified. The htpasswd is a command that is found commonly on linux boxes that have apache installed.

Aside from that, you could always manually enter them in.

HTH
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help wit my source code compiler errors Krandygrl00 C++ Forum 1 06-Jun-2005 09:14
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 03:26
Hide password skyloon MySQL / PHP Forum 2 08-Jul-2003 09:51

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:31.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.