varnish 防盗链
生活随笔
收集整理的這篇文章主要介紹了
varnish 防盗链
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#防盜鏈
if (req.http.referer ~ "http://.*") {
if ( !(req.http.referer ~ "http://.*aaa\.com"
|| req.http.referer ~ "http://.*bbb\.com"
|| req.http.referer ~ "http://.*wdj\.com"
|| req.http.referer ~ "http://.*google\.com"
|| req.http.referer ~ "http://.*baidu\.com"
|| req.http.referer ~ "http://.*yahoo\.cn"
)) {
error 404 "Not Found!";
#set req.http.host = "www.xxx.com";
#?????? set req.url = "/daolian.jpg";
}
}
?
轉載于:https://blog.51cto.com/tanjunjie/934426
總結
以上是生活随笔為你收集整理的varnish 防盗链的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle 数据库管理员职责
- 下一篇: js接受页面的传值