################################################################################### # .htaccess multiple users Version 1.2 # # Copyright 2002 Names.Co Internet plc support@names.co.uk # # Created 07 November 2002 Last modified 02 December 2002 # # http://www.names.co.uk # ################################################################################### # COPYRIGHT NOTICE # # Copyright 2002 Names.Co internet All Rights Reserved # # # # This program may be used and modified free of charge by anyone as long as this # # copyright notice and the comments above remain intact. By using this code you # # agree to indemnify Names.Co Internet from any liability that may arise from its # # use. # # # # Selling of this code without prior written consent is forbidden - it's my work, # # so don't try to make money from me! # # # # Please obtain permission before redistributing this software over the Internet # # or in any other medium. In all cases copyright and header must remain intact. # ################################################################################### [1] Files in this package htadmin.pl > the script to administer multiple .htaccess users readme.txt > this text file [2] Instructions for use > Upload the file htadmin.pl in ASCII format, to the folder you want to password protect > CHMOD htadmin.pl to 755 (rwxr-xr-x) > open a browser window and go to the folder you have just uploaded to > run the htadmin.pl file [3] Options > Modify an existing user: This allows you to change the password for an existing user. > Create a new user : This allows you to create a new user who will be able to access the protected folder with the password you create. > Delete Existing User Account: Remove a user from the allowed list > Reset the protection: Clears all users except admin > Delete all protection: Return the folder back to a normal web folder without protection [4] Notes > The script will automatically detect whether it has been initialised. If it finds that this is the first time it has been run, it will create a default username/password. These are: username: admin password: password. This is the default username and password to run the htadmin.pl script. This username and password are also set in the .htaccess file, so the folder the script is in is immediately password-protected. > If you use the "Delete All Protection" option, then the folder becomes accessible to everone. To protect the folder again, simply re-run .htadmin.pl [5] Support > There are no configurable settings in this script, so do not change anything! If you do, then we will not be able to offer any support unless previously agreed. > All bugs, comments and queries should be directed to support@names.co.uk [6] Updates > v1.1 - An unknown permissions bug with htpasswd on the servers was preventing the .htpasswd file to be written. Added routines to mimic the htpasswd routine using the crypt command. ©2002 Names.Co Internet plc