标签:防盗链
针对文件类型进行配置:
location ~ .*\.(wma|wmv|asf|mp3|mmf|zip|rar|jpg|gif|png|swf|flv)$ { |
2.针对文件目录进行配置:
location /img/ { root /data/img/; valid_referers none blocked *.php100.com php100.com; if ($invalid_referer) { rewrite ^/ http://www.php100.com/error.gif; #return 403; } } |
本文出自 “浅浅的淡淡” 博客,请务必保留此出处http://cuixiang.blog.51cto.com/8204722/1686403
标签:防盗链
原文地址:http://cuixiang.blog.51cto.com/8204722/1686403