referrer

package
v4.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryParams = []string{
	"ref",
	"referer",
	"referrer",
	"source",
	"utm_source",
}

QueryParams is a list of query parameters to set the referrer.

Functions

func Get

func Get(r *http.Request, ref string, domainBlacklist []string, ignoreSubdomain bool) (string, string, string)

Get returns the referrer for given request.

func Ignore

func Ignore(r *http.Request) bool

Ignore returns whether a referrer should be ignored or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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