Re: [PHP] serverside restrictions

2002-07-14 Thread Jason Wong
On Sunday 14 July 2002 14:17, Liam MacKenzie wrote: > This works fine, but is there a way to get apache to do it for me instead? > Like, this for example... > > > SetHandler server-info > Order deny,allow > Deny from all > Allow from 192.168.0.0 > This works for me: SetHa

Re: [PHP] serverside restrictions

2002-07-14 Thread Chris Hewitt
Liam MacKenzie wrote: > >This works fine, but is there a way to get apache to do it for me instead? >Like, this for example... > > >SetHandler server-info >Order deny,allow >Deny from all >Allow from 192.168.0.0 > > Yes, using exactly the syntax you have. The exact line you have w

[PHP] serverside restrictions

2002-07-13 Thread Liam MacKenzie
Hi guys, I have a function: $substring = substr($REMOTE_ADDR,0,9); if ($substring != '192.168.0') { echo "Access Denied"; exit; } If the user isn't from the local network, he's not allowed in. This works fine, but is there a way to get apache to do it for me instead? Like, this for exa