From: Grant Slater Date: Tue, 3 Mar 2020 14:44:27 +0000 (+0000) Subject: tilecache: block app faked google.com referer X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/20ecec87469737d5792880df39e6c15f6d8f3b94?ds=inline tilecache: block app faked google.com referer --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 4c8395fee..ea1b10ec9 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -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