Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpScore ¶
type IpScore struct { // Api Url is the API key from AbuseIPDB. ApiUrl string `json:"api_url,omitempty"` // WhitelistedIPs is a regex of whitelisted IPs. (optional) WhitelistedIPs string `json:"whitelisted_ips,omitempty"` Logger *zap.Logger }
ListenCaddy is a Caddy http.handlers module that listens for requests to specific URIs/paths and reports IPs that hit these URIs to AbuseIPDB.
func (IpScore) CaddyModule ¶
func (IpScore) CaddyModule() caddy.ModuleInfo
func (*IpScore) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
type Response ¶
type Response struct { Ip string `json:"ip,omitempty"` IpVersion int `json:"ipVersion,omitempty"` Country string `json:"country,omitempty"` Score int `json:"score,omitempty"` IsVPN bool `json:"isVpn,omitempty"` Time int `json:"time,omitempty"` TimeStr string `json:"timeStr,omitempty"` IsSafe bool `json:"isSafe,omitempty"` }
Click to show internal directories.
Click to hide internal directories.