aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/reader/rewrite/rules.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/reader/rewrite/rules.go b/internal/reader/rewrite/rules.go
index b185e670..418f7db8 100644
--- a/internal/reader/rewrite/rules.go
+++ b/internal/reader/rewrite/rules.go
@@ -68,6 +68,14 @@ var PredefinedRefererRules = []RefererRule{
URLPattern: regexp.MustCompile(`^https://sp1\.piokok\.com`),
Referer: "https://sp1.piokok.com",
},
+ {
+ URLPattern: regexp.MustCompile(`^https://f\.video\.weibocdn\.com`),
+ Referer: "https://weibo.com",
+ },
+ {
+ URLPattern: regexp.MustCompile(`^https://img\.hellogithub\.com`),
+ Referer: "https://hellogithub.com",
+ },
}
// GetRefererForURL returns the referer for the given URL if it exists, otherwise an empty string.