How to Password Protect your Web Page
 
Using the command 'mkwebpass' on your Unix account
  • First, log in to your UNIX account. To do this, you will need to use Secure Shell SSH, or X-windows.
  • Once you have logged in to your UNIX account, move (change) to the directory (where the web page is located) which you want to protect.
  • Then, type the following: mkwebpass .
  • You will then be prompted to type in a username/password (please use ones that are 'different' from your unix username/password).
  • This creates the .htaccess/.htpasswd file in the web page directory.
  • If you want a different username/password combination, then simply re-run the command.
  • If you want to remove the password protection, simply delete the files .htaccess and .htpasswd .


UCLA Department of Mathematics                          Search     Home