Web Directory Protection
Step 1: Users and Groups
Create a list of users
The file containing usernames and passwords should look something like this:
joe:5yAEsJB1XIEuo
jane:73KIYa1OmO8U2
tommy:58kT9aNwCv4C.
tammy:baTI.uw9Y58xA
To create it, do the following:
- Open up TextEdit.
- If you see the formatting toolbar (Styles, Spacing, Lists, etc.) on the editor window, select Format menu > Make Plain Text.
- Enter a username and password into the utility below. Click Encrypt.
Note: These are usernames and passwords of your choice. Do NOT use UCLA Logon credentials. - Copy and paste the generated line of text into the text editor.
- Repeat for additional users, one username:password pair per line.
- Save the file as htusers.
Note: You may need to uncheck the box for If no extension is provided, use ".txt".
Create a list of groups (optional)
The file containing group names and members should look something like this:
bruins:joe,jane
trojans:tommy,tammy
guys:joe,tommy
girls:jane,tammy
To create it, do the following:
- Open up TextEdit.
- If you see the formatting toolbar (Styles, Spacing, Lists, etc.) on the editor window, select Format menu > Make Plain Text.
- Enter a group name and colon, followed by member usernames separated by commas.
Note: The usernames must exist in the htusers file. - Repeat for additional groups, one group per line.
- Save the file as htgroup.
Note: You may need to uncheck the box for If no extension is provided, use ".txt".
Upload the files
The user and group files need to be placed in the root folder (the highest level directory):
- Connect to your BOL FTP site.
- Select View menu > Go > Root Folder.
- Upload htusers (and htgroup, if you created it).
