Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchGoogleIPRanges ¶
FetchGoogleIPRanges gets IP ranges via the advertised DNS SPF records
Types ¶
type FckGgl ¶
type FckGgl struct { Level FuckupLevel `json:"level,omitempty"` // contains filtered or unexported fields }
func (FckGgl) CaddyModule ¶
func (FckGgl) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
type FuckupLevel ¶
type FuckupLevel string
const ( FuckupLevel1 FuckupLevel = "a teeny tiny bit" FuckupLevel2 FuckupLevel = "fuck them" FuckupLevel3 FuckupLevel = "for real" FuckupLevel4 FuckupLevel = "all the way" )
type GoogleMatcher ¶
type GoogleMatcher struct { // traffic from google itself Bot bool `json:"googlebot,omitempty"` IPranges bool `json:"ip_ranges,omitempty"` // traffic from google users UAChrome bool `json:"useragent_chrome,omitempty"` UAChromeish bool `json:"useragent_chromeish,omitempty"` Referer bool `json:"referer_google,omitempty"` RefererExt bool `json:"referer_other,omitempty"` // contains filtered or unexported fields }
func (GoogleMatcher) CaddyModule ¶
func (GoogleMatcher) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (GoogleMatcher) Match ¶
func (m GoogleMatcher) Match(r *http.Request) bool
Match returns true if r matches m.
func (*GoogleMatcher) Provision ¶
func (m *GoogleMatcher) Provision(ctx caddy.Context) (err error)
Provision sets up the module defaults.
func (*GoogleMatcher) UnmarshalCaddyfile ¶
func (m *GoogleMatcher) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile sets up the handler from Caddyfile tokens.
google [googlebot] [ip-ranges] [ua-chrome] [ua-chromeish] [referer-google] [referer-other] google { [googlebot] [ip-ranges] [ua-chrome] [ua-chromeish] [referer-google] [referer-other] }
Click to show internal directories.
Click to hide internal directories.