// This will retrieve the person´s ip! $ip = getenv('REMOTE_ADDR'); // Replace 'x' with the person´s ip address! $blocked = "195.84.137.66"; if (ereg($blocked,$ip)) { echo "hey dude, your ip was blocked!"; exit(); } ?>