I would like to block all ip addresses for my pages except for the addresses which are in my room which start with say ex. 123.456..
I know that we can block using
if ($REMOTE_ADDR != "123.456.%.%")
// if acess is denied redirecting the user to this page
{ header ("Location: http://www.yahoo.com");
exit;
}
?>
Ok! what I am unsure about this is the 123.456.%.% I did block ip addresses before liek 1 0r 2 by specifying the entire number instead of %.
My question is how do I block all users expect those accesing from ip address starting 123.456
Thanks in advance
Anitha
😕