Quick method for adding multiple usernames and password to htaccess

Ever had to add hundreds or even thousands of usernames to a htaccess file at once? Although rare this problem has come up for me recently (strangely enough with the same password as the username - obviously not a secure method but something that was necessary for the project).

The solution I created for this problem is htpmake, essentially a PHP script that takes a text file and outputs a file that of usernames and passwords you can use with your htaccess file.

Usage:

Choose the file that you would like to use (see below for default formatting):

htpmake screenshot

Once you click process the script will present you with a file to download:

htpmake screenshot

Sample file:

test0, test1, test2, test3, test4, test5, test6, test7, test8, test9, test10

Installation:

To install this script copy and paste the source code below into a new PHP file and create a directory called ‘uploads’ in the same location as the script - THAT’s it! Contact me if you have any problems.

Source Code:
Click here to view / download

Digg this!

Leave a Reply