block bad referrers

This commit is contained in:
bunkerity
2020-12-02 10:41:50 +01:00
parent 9ec9de6ca2
commit 3a7aa5d9c0
8 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
map $http_referer $bad_referrer {
hostnames;
default no;
%BLOCK_REFERRER%
}

View File

@@ -90,6 +90,9 @@ http {
# list of blocked user agents
%BLOCK_USER_AGENT%
# list of blocked referrers
%BLOCK_REFERRER%
# zone for proxy_cache
%PROXY_CACHE_PATH%