deny

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DenyDuration int64 = 60 * 60 * 24
)

Functions

func CheckRequestDenied

func CheckRequestDenied(req *http.Request) (address string, denied bool)

func DenyAddress

func DenyAddress(address string)

func DenyPath

func DenyPath(patterns ...string) (err error)

func DenyWordPressPaths

func DenyWordPressPaths()

func IsAddressDenied

func IsAddressDenied(address string) bool

func Middleware

func Middleware(next http.Handler) http.Handler

func Serve403

func Serve403(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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