Welcome Guest, Not a member yet? Register   Sign In
Redirection by value of $ _SERVER [ 'REMOTE_ADDR']
#3

[eluser]laegnur[/eluser]
Hi!

Thanks for you answer. With this article, and using his function, I was able to do so.

Code:
if(isSet($_SERVER['REMOTE_ADDR']))
{
  if(ip_in_range($_SERVER['REMOTE_ADDR'],'192.168.*.*'))
  {
    echo 'Intranet content';
  }
  else
  {
    header('Location: /internet_content/index.php');
  }
}


Messages In This Thread
Redirection by value of $ _SERVER [ 'REMOTE_ADDR'] - by El Forum - 01-26-2010, 09:51 PM
Redirection by value of $ _SERVER [ 'REMOTE_ADDR'] - by El Forum - 01-26-2010, 10:02 PM
Redirection by value of $ _SERVER [ 'REMOTE_ADDR'] - by El Forum - 01-27-2010, 12:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB