]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: block app faked google.com referer
authorGrant Slater <git@firefishy.com>
Tue, 3 Mar 2020 14:44:27 +0000 (14:44 +0000)
committerGrant Slater <git@firefishy.com>
Tue, 3 Mar 2020 14:44:27 +0000 (14:44 +0000)
cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index 4c8395fee516723ed390d8d52865d39cb944a554..ea1b10ec98b2864cbbb9c34a8304bd771719d1fd 100644 (file)
@@ -73,6 +73,8 @@ map $http_referer $denied_referer {
   'http://www.osm.org'             1; # Faked
   'http://osm.org/'                1; # Faked
   'http://osm.org'                 1; # Faked
+  '~^http://google\.com'           1; # Faked
+  '~^http://www\.google\.com'      1; # Faked
   '~^https?://pmap\.kuku\.lu/'           1; # Too much traffic
   '~^https?://[^.]*\.pmap\.kuku\.lu/'    1; # Too much traffic
   '~^https?://fastpokemap\.com/'         1; # Too much traffic