SHARE
TWEET

Untitled

a guest Apr 18th, 2013 38 Never
  1. $ips = array(
  2.     "a" => array( 'xxx.xxx.xxx.xxx', ....),
  3.     "b" => array( 'xxx.xxx.xxx.xxx', ....),
  4. );
  5.        
  6. if(in_array($ips['a'], $_SERVER['REMOTE_ADDR'])) {
  7.     header("location: website.com/a");
  8. } else {
  9.     header("location: website.com/b");
  10. }
  11. exit;
RAW Paste Data
Top