Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotDetector ¶
type BotDetector struct {
// contains filtered or unexported fields
}
func New ¶
func New(opt ...Option) (*BotDetector, error)
New creates a new instance of BotDetector using predefined rules.
func NewWithRules ¶
func NewWithRules(rules []string) *BotDetector
NewWithRules initializes a new instance of BotDetector with provided rules.
func (*BotDetector) IsBot ¶
func (b *BotDetector) IsBot(ua string) bool
IsBot tests whether the useragent is a bot, crawler or a spider.
Click to show internal directories.
Click to hide internal directories.