fixes #2603: Nginx Error: unknown "invalid_referer" variable
This commit is contained in:
@@ -19,7 +19,7 @@ server {
|
||||
#}
|
||||
location /data {
|
||||
# if you want to block hotlinking
|
||||
# valid_referers none __hostname__ ~\.google\. ~\.bing\. ~\.yahoo\.;
|
||||
valid_referers none __hostname__ ~\.google\. ~\.bing\. ~\.yahoo\.;
|
||||
if ($invalid_referer) {
|
||||
return 403;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user