From 45b7810de02974d8e5c7c51874238c4f76f42e94 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 23 Mar 2020 12:53:09 +0000 Subject: [PATCH] Tilecache: block more fake google UA --- .../tilecache/templates/default/nginx_tile.conf.erb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 22ebd88cb..4f6680233 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -84,8 +84,14 @@ 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 + 'http://google.com' 1; # Faked + 'http://www.google.com' 1; # Faked + 'http://google.com/' 1; # Faked + 'http://www.google.com/' 1; # Faked + 'https://google.com' 1; # Faked + 'https://www.google.com' 1; # Faked + 'https://google.com/' 1; # Faked + 'https://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 -- 2.39.5