mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 16:53:11 +08:00
Added logic to exclude bots from visits when requested
This commit is contained in:
@@ -53,6 +53,11 @@ final class Visitor
|
||||
return new self('', '', null, '');
|
||||
}
|
||||
|
||||
public static function botInstance(): self
|
||||
{
|
||||
return new self('cf-facebook', '', null, '');
|
||||
}
|
||||
|
||||
public function getUserAgent(): string
|
||||
{
|
||||
return $this->userAgent;
|
||||
|
||||
Reference in New Issue
Block a user