Documentation ¶
Overview ¶
Package iplists control the access by the referrer address or ip address.
Package iplists control the access by the referrer address or ip address.
Index ¶
Constants ¶
View Source
const ErrIterStop = "stop iter"
Variables ¶
This section is empty.
Functions ¶
func IPBlock ¶
func IPBlock(deny list.List, handler http.HandlerFunc) http.HandlerFunc
func Referrer ¶
func Referrer(def DefaultRule, allowed, deny list.List, fbc *FBCrawler, handler http.HandlerFunc) http.HandlerFunc
Referrer checks the referrer url
Types ¶
type FBCrawler ¶
type FBCrawler struct { Server string Port string AS []string Refresh time.Duration Cache string // contains filtered or unexported fields }
FBCrawler contains the information about the crawlers.
func NewFBCrawler ¶
func NewFBCrawler(server, port string, refresh time.Duration, cache string, AS ...string) (*FBCrawler, error)
NewFBCrawler create a new crawler query.
Click to show internal directories.
Click to hide internal directories.