Versions in this module Expand all Collapse all v0 v0.1.1 Aug 3, 2026 v0.1.0 Aug 3, 2026 Changes in this version + func New(_ context.Context, next http.Handler, config *Config, name string) (http.Handler, error) + type Config struct + BadPathScore int + BlockedExtensions []string + BlockedPaths []string + BlockedUserAgentScore int + BlockedUserAgents []string + BrowserValidation bool + ClientIPHeader string + EmptyUserAgentScore int + FakeBrowserScore int + LogBlockedRequests bool + MaxScoreEventsPerIP int + MaxTrackedIPs int + MissingAcceptScore int + NotFoundScore int + RandomArticlePatterns []string + RandomArticleScore int + RequireAccept bool + RequireHost bool + RequireUserAgent bool + ScoreThreshold int + ScoreWindowMinutes int + StatusCode int + TemporaryBanMinutes int + TrustedProxyCIDRs []string + WhitelistCIDRs []string + func CreateConfig() *Config