CU Home
Columbia University Information Technology
Restricting Access by Domain

Web Design > Restricting Access by Domain

If you have Web documents that must be restricted to users at Columbia you should put those files in a separate directory. Create a file in that directory called .htaccess. Note the filename begins with a period. If that file contains these commands:

order deny,allow
deny from all
allow from .columbia.edu

access to that directory and all its subdirectories will be restricted to users on the Columbia computer network. If they use a Web browser in their Columbia office or dorm room, or if they login to cunix they will be allowed to access those Web pages, but users who connect using a different Internet Service Provider (ISP), or from another site, will be denied access.

Please note that a period is required at the beginning of the domain name ".columbia.edu" otherwise it will be interpreted as a host name.

Detailed information is available for these directives in the Apache Web Server documentation:
You can also include limit directives that will restrict access by username and password.


« Back to Managing Access


Related Links By Username and Password
Apache Access Module
How to Use Limit Directive
How to Use Satisfy Directive