Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BlockCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: "filter", Name: "blocked_total", Help: "The total count of blocked requests.", }, []string{"server"}) )
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Filter represents a plugin instance that can filter and block requests based on predefined lists.
type PatternMatcher ¶
type PatternMatcher struct {
// contains filtered or unexported fields
}
func NewPatternMatcher ¶
func NewPatternMatcher() *PatternMatcher
func (*PatternMatcher) Match ¶
func (l *PatternMatcher) Match(str string) bool
type ResponseWriter ¶
type ResponseWriter struct {
dns.ResponseWriter
*Filter
// contains filtered or unexported fields
}
ResponseWriter detects and blocks cname cloaking.
Click to show internal directories.
Click to hide internal directories.