This article applies to the following HKUST Web servers:

WWW
iHome
home
Teaching

Controlling Access by Domain

You can allow or deny access according to the name of the machine which is doing the browsing. This can be done at either the domain or host name level. For example, you could set it up as any of the following:

Setting up Access Control by Domain

The .htaccess file shown below allows access from machine within HKUST domain only.

order deny,allow
deny from all
allow from .ust.hk

Explanation of the Syntax

Access Directives

The following three access directives are used for domain protection - you'll always have order first, followed by the other two:
order order
Specify allow,deny for "everyone but those" and deny,allow for "only these".  Spaces aren't allowed next to the comma.
deny from host host ...
Specify either all, a domain name, or a host name.
allow from host host ...
Specify either all, a domain name, or a host name.
Next: Basic Password and Group Protection