Hello,
if the user's IP address is good (not fake or etc.), can is_numeric($_SERVER['REMOTE_ADDR']) return 'false' ?