Zeus Server has a fast, flexible and effective way of doing this. Simply list the sites for which you want to permit access, and all other sites which do not match the site specification will be denied. Sites themselves might be a full sitename (eg. www.obsolete.com) or a partial sitename (eg. .uk) which will match all sites that end in that string. + and - symbols specify whether access should be granted or denied.
-
No access from anywhere.
+
Allow access from anywhere. Note this is the same as not specifing an access restriction in the first place.
+foo.myorg.org,+bar.another.com
Only requests from clients on the machines foo.myorg.org and bar.another.com will be allowed to retrieve information.
+.uk,+.org
Only requests from the .uk and .org domains are allowed.
+,-abannedsite,-anotherbannedsite
Access to everyone, apart from the machines abannedsite and anotherbannedsite.
+.uk,-.cam.ac.uk
Access to everyone in the United Kingdom, apart from clients situated in the University of Cambridge.
Note, for applying restrictions on directories, you should always include the final `/'.
Note, for aliasing directories, you should always include the final `/'.
Note, for scriptaliasing directories, you should always include the final `/'.
In order to prevent the user from having to reenter their userid/password for every subseqent request, authorization is granted for a realm. A realm is a textual string used to identify and describe to the client the resource which they are required to authorize themselves. Multiple directories may be tagged with the same realm, in which case the client will only need to authorize themselves to one of those directories and will then be allowed access to all of them.
Note, for specifying directories, you should always include the final `/'.