|
Web servers typically support a mechanism to limit access to Web pages on a directory by directory basis, using either domain names or user names and passwords. In computer security jargon this is "authentication" (making sure you know the identity of the client) and "authorization" (deciding to allow or deny based on the authentication). The most common mechanism is the ".htaccess" file, introduced in the NCSA server and continued in the Apache server. According to the Netcraft survey for September, 1998, there were 1.6 million Apache servers in use on the Web (rapidly growing) and 66 thousand NCSA servers (sightly declining). Overview.The following examples are intended to help anyone who has a central Unix account (CISUNIX) and who uses the PubPages server (NCSA) http://pubpages.unh.edu/ or who has a Contributor Account for the UNHINFO server (Apache). For basics, as described here, the NCSA and Apache servers are similar, but with important differences. Apache does not support all of the syntax as documented for NCSA servers and the examples below are for Apache. See the references below for more details and alternative examples. Caveats.Before you get too excited with plans to authenticate everything in sight, consider these points:
If the host you intend to allow or deny access gets its network configuration from a DHCP server, you need to know that the address is static rather than dynamic and you should specify it as an IP address rather than a domain name. Examples.
|