When to use

Use this code when you want a file to be viewed only by students registered for your class. Visitors will be prompted to give their BU login name and Kerberos password when they try to view files restricted in this way.

CODE EXAMPLE:

AuthType weblogin
<Limit GET POST>
require class 053casaa371a1
</Limit>

NOTES:

  1. Copy and paste this code as outlined in Protect Your Subdirectory. You must modify the code.
  2. Replace the course ID number, “053casaa371a1” in the example above, with the course ID number for the class.
  3. You can limit access to BU individuals in addition to restricting access to students registered for a class. Simply add additional “require user alias” lines below the “require class” line.

EXAMPLE:

To restrict access to students registered for the Fall 2004 section of CAS AA371 A1, and to Richard Mendez, you would use this exact code:

AuthType weblogin
<Limit GET POST>
require class 053casaa371a1
require user mendez

</Limit>

Class Code

Use this code when you want a file to be viewed only by students registered for your class. Visitors will be prompted to give their BU login name and Kerberos password when they try to view files restricted in this way.

The code itself is made up of several components, formulated in the following manner:

Example: 093casaa371a1
The components are broken down link this: 09|3|cas|aa|371|a1

The first two digits refer to the academic year. Academic years always span calendar years and are expressed like this: the 2009-2010 academic year. The “academic year” always begins with Summer Session 1. The class code abbreviation uses the second of the two calendars years that are spanned by the academic year. Therefore, for a class taught in summer session 1 in 2009, the class code would start with ’10’. For a class taught fall semester in 2008, the class code would start with ’09’.

The third digit refers to the session or semester.
Summer session 1 = 1
Summer session 2 = 2
Fall semester = 3
Spring semester = 4
For our example, the first three digits (093) indicate Fall Semester 2008.

The next 3 letters are the college abbreviation.
For our example, this indicates college CAS.

The next 2 letters are the department abbreviation.
For our example, this indicates department AA.

The next 3 digits refer to the course number.
For our example, this indicates course number 371.

The final 2 digits refer to the section number.
For our example, this indicates section A1.

To determine the above information for a given class, you can search for classes via the University Class Schedule.