nginx防盗链配置

十一月 27th, 2009 Posted in Nginx | 阅读次数: 315 次

原文:http://sudone.com/nginx/nginx_valid_referers.html

以下配置一般可称为图片防盗链配置,如果是mp3这种文件,我现在是用的cookie防盗链方式。
location /img/ {
alias /data/img/;
valid_referers none blocked server_names *.sudone.com sudone.com ;
if ($invalid_referer) {return 403;}
}

相关日志:

Tags: ,

5 Responses to “nginx防盗链配置”

  1. Resources Says:

    Interesting Posts…

    [...]some other related resources on the web that are worth viewing on this subject include[...]…


  2. Related Resources Says:

    Interesting Article…

    [...]some interesting sites worth visitng. We recommend all our readers go and check these out[...]……


  3. bouton de manchette Says:

    Awesome website……

    [...]the time to read or visit the content or sites we have linked to below the[...]………


  4. munich hotel price comparison Says:

    Cool sites……

    [...]we came across a cool site that you might enjoy. Take a look if you want[...]………


  5. berlin hotel rate review Says:

    Check this out……

    [...] that is the end of this article. Here you’ll find some sites that we think you’ll appreciate, just click the links over[...]………


留下您的脚印