location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
valid_referers none blocked *.zhukun.net *.youdao.com *.zhuaxia.com *.xianguo.com *.google.cn *.google.com *.google.com.tw *.google.com.sg *.google.com.hk *.bloglines.com image.soso.com cn.bing.com image.baidu.com *.feedburner.com *.feedsky.com;
if ($invalid_referer) {
rewrite ^/ http://image161.poco.cn/mypoco/myphoto/20100506/20/124649620100506204112026.jpg;
#return 404;
}
}
|
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29532788/viewspace-2168659/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29532788/viewspace-2168659/