banlist

package
v0.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Banlist

type Banlist struct {
	// contains filtered or unexported fields
}

func New

func New(log logrus.FieldLogger, filepath string) *Banlist

func (*Banlist) CheckRequest

func (b *Banlist) CheckRequest(r *http.Request) bool

CheckRequest will check if the domain is blocked or the path is blocked

func (*Banlist) Close

func (b *Banlist) Close()

type Config

type Config struct {
	Domains []string
	URLs    []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL