Kondisi IP dalam PHP

if ($_SERVER['REMOTE_ADDR'] == 'xxx.xxx.xxx.x' ) {
  //your code here
}
Calm Cottonmouth