Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Added escaping of referer blocking when requests come from trusted …

…hosts.
  • Loading branch information...
commit 78b2c0e43e27737c601366ca67d5ce2c694d2d94 1 parent 82613fd
@perusio authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 blacklist.conf
View
6 blacklist.conf
@@ -16,3 +16,9 @@ map $http_referer $bad_referer {
default 0;
~(?i)(babes|click|diamond|forsale|girl|jewelry|love|nudit|organic|poker|porn|poweroversoftware|sex|teen|webcam|zippo|casino|replica) 1;
}
+
+## Add here all hosts that should be spared any referrer checking.
+geo $bad_referer {
+ 127.0.0.1 0;
+ 192.168.1.0/24 0;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.