[tech] restricting access to ucc web sites

Matt Johnston matt at ucc.gu.uwa.edu.au
Tue Apr 29 20:17:34 WST 2003


On Tue, Apr 29, 2003 at 07:55:47PM +0800, James Andrewartha wrote:
> On Tue, 29 Apr 2003, Jean-Paul Blaquiere wrote:
> 
> > is it possible to restrict access to personal web pages hosted at ucc to
> > either uwa or waix?
> 
> It shouldn't be hard ... a little googling on "htaccess ip restriction"
> gave me this code snippet for your ~/public-html/.htaccess file:
> 
> <limit GET>
> order deny,allow
> deny from all
> allow from 192.168.0.1
> </limit>
> 
> WAIX is a tad harder, since the IP ranges of waix aren't well defined
> .. perhaps something involving hosting the page on mussel in public_html
> (since mussel is only accessible from UWA and WAIX).

Homepages are actually served from mermaid, so a simple .htaccess "allow
from" won't work. There is a header (X-Forwarded-For) which you might be
able to use, unsure how well .htaccess does that.

Mussel sounds like the easy way :)

Matt


More information about the tech mailing list