Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RBL ¶
type RBL struct {
// Lists contains the RBL servers to query (e.g., "zen.spamhaus.org")
Lists []string `json:"lists,omitempty"`
// BlockMessage is the message returned when an IP is blocked
BlockMessage string `json:"block_message,omitempty"`
// StatusCode is the HTTP status code to return when blocking
StatusCode int `json:"status_code,omitempty"`
// LogAllChecks determines whether to log all RBL checks or only blocks
LogAllChecks bool `json:"log_all_checks,omitempty"`
// contains filtered or unexported fields
}
RBL implements an HTTP handler that checks client IPs against RBL lists
func (RBL) CaddyModule ¶
func (RBL) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information
func (*RBL) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler
Click to show internal directories.
Click to hide internal directories.