Perl Scripts

PERL Tutorials

  • TeachYourself Perl5
  • http://www.perl.com
  • The CGI Collection
  • Free Perl Scripts at The Free Well
  • ActiveState Perl
  • eTattler.com
  • CGI Forms and Scripts
  • Perl Pages

  • www.eds.org/~steve- Perlmongers
  • happyfunball.pm.org/jm- Java Mongers

    1) Create Your .htaccess File

    2) Add Your First User

    3) Add Additional Users

  • Blanks

    tester

    AuthUserFile /data/.htpasswd
    STANFORD SCHOOL OF ENGINEERING Password Protection for your Class Website Setting up password protection for your site requires using telnet and some basic UNIX commands.

    Step One: create .htaccess file

    Create the following document using a simple text editor. Substitute the appropriate information for your site inside the parentheses.

    AuthUserFile /(server path to your class folder)/.htpasswd
    AuthGroupFile /dev/null
    AuthName (Your Site Name/Group Name expl. George's Class)
    AuthType Basic


    require valid-user

    Save this file as .htaccess and upload it into the directory that you want to protect (i.e., your class folder).

    Step Two: create your .htpasswd file

    Using the htpasswd program on your server, create an encrypted version of the name and passsword you plan to give the class to access the website.

    While in your telnet session, dial into your server and go to your directory. At the prompt, type:

    htpasswd -c .htpasswd (your group or username that you will give the class)

    You will be asked for the password and then a .htpasswd file will be created for you. Make sure this file is located in your directory. If it is not, load it into the class folder. Test to make sure your password works.

    For more detailed instructions check out the tutorial on the Leland server. http://www.stanford.edu/userauth-tutorial.html
    If your site is on the Leland server, you will need to look at this tutorial to establish your AFS permissions for the directory you are trying to protect.

    Home | page1 | page2 | page3 | page4 | page5