Initial YakPanel commit
This commit is contained in:
10
vhost/template/nginx/anti.conf
Normal file
10
vhost/template/nginx/anti.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
#防盗链配置
|
||||
location ~ .*\.(<EXT_NAME>)$
|
||||
{
|
||||
expires 30d;
|
||||
access_log /dev/null;
|
||||
valid_referers none blocked <DOMAINS>;
|
||||
if ($invalid_referer){
|
||||
return <CODE>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user