防盗链

Nginx

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
           valid_referers none blocked *.tappal.com tappal.com;
            if ($invalid_referer) {
                     return 404;
             }
             expires      30d;
     }

你可能感兴趣的:(防盗链)