Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { RegexPatterns []string `json:"regexPatterns,omitempty"` BlockDurationMinutes int `json:"blockDurationMinutes,omitempty"` Whitelist []string `json:"whitelist,omitempty"` EnableDebug bool `json:"enableDebug,omitempty"` }
Config defines the configuration options for the plugin.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates a default configuration for the plugin.
type RegexBlock ¶
type RegexBlock struct {
// contains filtered or unexported fields
}
RegexBlock is a Traefik plugin that blocks requests matching certain regex patterns.
func (*RegexBlock) ServeHTTP ¶
func (p *RegexBlock) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP intercepts the request and blocks it if it matches any of the configured regex patterns.
Click to show internal directories.
Click to hide internal directories.