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,3 @@
if ($bad_referrer = yes) {
return 444;
}

View File

@@ -25,6 +25,7 @@ server {
%FEATURE_POLICY%
%PERMISSIONS_POLICY%
%BLOCK_USER_AGENT%
%BLOCK_REFERRER%
%BLOCK_TOR_EXIT_NODE%
%BLOCK_PROXIES%
%BLOCK_ABUSERS%