[Zope] hiding site content based upon a domain? (similar to htaccess)

Martijn Pieters mj@antraciet.nl
Thu, 05 Aug 1999 12:55:27 +0200


At 09:48 05/08/99 , Tony McDonald wrote:
>Is there any way to restrict access to a section of a site (and all 
>objects under it) to a particular domain, or to make a section/sub-objects 
>available to only a particular domain?


Yup, users can have a 'domains' list. If you define a user specifically for 
the domain you want to limit access to, with no password but with the 
Domains field filled in, all users from that domain are authenticated as 
that user.

The Domains property is of type 'tokens', so you can fill in a list of 
domains, and use wildcards as well. Domains of type 10.1.*.* work fine, as 
do *.antraciet.nl types.


--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------