作者头像
Zairun
2 天前 2026年03月03日 07:24

Cloudflare R2对象存储桶,绑定域名为博客图片外链安全性规则,安全自定义规则,图片防盗链表达式规则。

(
 http.request.uri.path contains ".jpg"
 or http.request.uri.path contains ".jpeg"
 or http.request.uri.path contains ".png"
 or http.request.uri.path contains ".webp"
 or http.request.uri.path contains ".gif"
)
and
http.referer ne ""
and
not http.referer contains "zairun.com"

或下面这种表达式规则

g(
 ends_with(http.request.uri.path, ".jpg")
 or ends_with(http.request.uri.path, ".jpeg")
 or ends_with(http.request.uri.path, ".png")
 or ends_with(http.request.uri.path, ".webp")
 or ends_with(http.request.uri.path, ".gif")
 or ends_with(http.request.uri.path, ".mp4")
)
and
not (
 http.referer contains "zairun.com"
)

 

话题 #笔札
评论 0 热度 106
😊 😂 😭 😍 👍 ❤️ 🔥

发表评论