/** * Generates a fingerprint from the user agent string * * @return string */ public static function fingerprint() { if (!r::cli()) { return sha1(Visitor::ua() . (ip2long($_SERVER['REMOTE_ADDR']) & ip2long('255.255.0.0'))); } else { return ''; } }