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
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
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
3 matches
Mail list logo