package
module
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Dec 4, 2020
License: Unlicense
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
iris-blacklist
Iris Middleware to check a request against a blacklist of IP addresses/ranges or User Agents and display a customised block message to the user
Documentation
¶
func New(options Options) iris.Handler
New creates a new instance of the Blacklist middleware
type Blacklist struct {
}
Blacklist is the struct that we will use for all internal purposes
Serve performs some checks whether the user is blocked or not
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.