Re: IP hack secure - fixed
maybe even
$IP = mysql_real_escape_string($_SERVER['REMOTE_ADDR']);
if(empty($IP))
{
echo 'You dont have a/an IP so you can\'t play the game!';
$this->endpage();
exit;
}
$blockedIPS = array("127.0.0.1", "blah", "blah1", "Some blocked ips lol");
if(in_array($IP, $blockedIPS))
{
echo 'This IP is blocked from the game';
exit;
}