配置防盗链,加入到server中 

server
    {
        listen  80;
        server_name www.test.com 192.168.1.120;
        index   index.htm  index.html;
        #root /web/wwwroot;
--------------------------------------------------------------------
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
        valid_referers none blocked www.5icool.org 5icool.org;
        if ($invalid_referer) {
        rewrite ^/ http://www.5icool.org/403.html;
        #return 403;
---------------------------------------------------------------------
  }
  }