Nginx之防盗链 Nginx

Cool.Cat 2019-10-10 2664

    location ~ .*\.(jpg|jpeg|gif|png|js|css|ico|eot|svg|ttf|woff|)$
    {
        expires      30d;
        access_log /dev/null;
        valid_referers none blocked xxx;
        if ($invalid_referer){
           return 404;
        }
    }


最新回复 (0)
返回
发新帖
X