I am attempting to copy email addresses from one .txt file into a .htpasswd file that has passwords associated with email addresses. What I have running is Subscribe Me! by cgielite.com for a mailing list. The .htpasswd file is used for subscribers to access a password protected directory via .htaccess. This .htpasswd file has the same password for each email address. I know... not the most secure method, but I am trying to at least provide some benefit of subscribing to my mailing list. The files located in the password protected directory are archives of my company Newsletter.
Anyway...does anyone know how to create a cgi file that will take the email addresses from the .txt file and copy them to the .htpasswd file and at the same time add a common password to each email address?
In the text file, the format is:
joesmo@server.com
The format in the .htpasswd is:
joesmo@server.com:YHEDNFG.YETS2ys
Any assistance or pointers is greatly appreciated.
TIA.
Best regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
[This message has been edited by Eliot (edited August 06, 1999).]
Anyway...does anyone know how to create a cgi file that will take the email addresses from the .txt file and copy them to the .htpasswd file and at the same time add a common password to each email address?
In the text file, the format is:
Code:
myname@server.com joesmo@server.com
The format in the .htpasswd is:
Code:
myname@server.com:YHEDNFG.YETS2ys joesmo@server.com:YHEDNFG.YETS2ys
Any assistance or pointers is greatly appreciated.
TIA.
Best regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
[This message has been edited by Eliot (edited August 06, 1999).]