[PHP] serverside restrictions

2002-07-14 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

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... Location /server-info SetHandler server-info Order deny,allow Deny from all Allow from 192.168.0.0 /Location Yes, using exactly the syntax you have. The

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... Location /server-info SetHandler server-info Order deny,allow Deny from all Allow from 192.168.0.0 /Location This