nginx如何防盗链(HttpAccessKeyMoudule)

Nginx防盗链的目的,主要是:

1让资源只能在我的页面内显示

2.不能单独来取或者下载

location ~.*\. (gif|jpg|png|flv|swf|rar|zip)$
{
    accesskey on;
    accesskey_hashmethod md5;
    accesskey_arg "key";
    accesskey_signature "mypass$remote_addr";
}
转载请注明本文链接:https://blog.weixiaoline.com/2807.html