++$ip{$ip_address}; #### if ($ip{$ip_address} < 4) { # Grant access } else { # Show an error message }