Hi there,
I'm using the following code to allow access to specified IP's only. The code is in globals.php in the admincp. However, I now want to make it so I can add subnets as well.
PHP Code:
if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1')
{
echo "Access denied";
exit;
}
Does anyone know how to make it so that I could specify subnets *as well as* IP addressees?
Thanks.