]> scripts.mit.edu Git - www/raw.git/blob - faq/23.mdwn
Import from TextPattern
[www/raw.git] / faq / 23.mdwn
1 [[!meta title="Can I limit access to my scripts and/or other content using passwords?"]]
2 Yes. Follow these instructions to limit web access to a
3 subdirectory of your web\_scripts directory:
4
5 \1. Decide upon one or more usernames and passwords that will be
6  allowed to access the content. Do not use your Athena password!  
7  2. On Athena, cd to the directory to which you want to limit
8  access.  
9  3. Run “add scripts”.  
10  4. Run “webaccess allow USER\_NAME” and enter the desired password
11  for USER\_NAME upon request.  
12  5. Repeat step \#4 for every username that you want to be able to
13  access the content.  
14  6. Use a web browser to confirm that access is being restricted
15  correctly.
16
17 “webaccess remove USER\_NAME” will remove a user’s access.  
18 “webaccess reset” will clear all access restrictions on a
19 directory.
20
21 (webaccess works by creating .htaccess and .htpasswd files for
22 you)
23
24 You can also limit access using
25 [MIT certificates](http://scripts.mit.edu/faq/15/).
26
27
28