Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

To secure a directory you need to place a file named “.htaccess” in the desired directory (ie: secure) for example:

/home/netID/edu.uconn.sitename/public_html/secure/.htaccess

Two example .htaccess files

  1. Allow anyone with a valid netID access

    AuthType CAS
    require valid-user

  2. Allow only certain users access

AuthType CAS
require user NetID1
require user NetID2


To capture the NetID of the user who's logged into the secure directory, using the following code in your index.php file in the secure directory:

$netid=$_SERVER['REDIRECT_REMOTE_USER'];

  • No labels