Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PredefinedRefererRules = []RefererRule{ { URLPattern: regexp.MustCompile(`^https://\w+\.sinaimg\.cn`), Referer: "https://weibo.com", }, { URLPattern: regexp.MustCompile(`^https://i\.pximg\.net`), Referer: "https://www.pixiv.net", }, { URLPattern: regexp.MustCompile(`^https://cdnfile\.sspai\.com`), Referer: "https://sspai.com", }, { URLPattern: regexp.MustCompile(`^https://(?:\w|-)+\.cdninstagram\.com`), Referer: "https://www.instagram.com", }, { URLPattern: regexp.MustCompile(`^https://sp1\.piokok\.com`), Referer: "https://sp1.piokok.com", }, }
List of predefined referer rules
Functions ¶
func GetRefererForURL ¶ added in v2.2.3
GetRefererForURL returns the referer for the given URL if it exists, otherwise an empty string.
Types ¶
type RefererRule ¶ added in v2.2.3
Click to show internal directories.
Click to hide internal directories.