]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/nginx_tile.conf.erb
Merge remote-tracking branch 'github/pull/288'
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile.conf.erb
index 4e1daee4ac4404e38745f87c1cc3ecbe978bb1be..fb03fca5546cd6134271f6fcf888b4d19e6e8b47 100644 (file)
@@ -59,6 +59,7 @@ map $http_user_agent $denied_scraper {
   '~^Wget\/'             1; #Library Default
   'C# TilesDownloader'   1; # Downloader
   'MapDownloader'        1; # Downloader
+  '~^staticmaps'         1; # Downloader
   'Android'              1; # Default or fake
   'kc_android'           1; # Default or fake
   'Mozilla/4.0'          1; # Fake
@@ -76,14 +77,23 @@ map $http_referer $denied_referer {
   default                          0; # Not denied
   'http://www.openstreetmap.org/'  1; # Faked
   'http://www.openstreetmap.org'   1; # Faked
+  'https://www.openstreetmap.org'  1; # Faked
   'http://openstreetmap.org/'      1; # Faked
   'http://openstreetmap.org'       1; # Faked
+  'https://openstreetmap.org'      1; # Faked
   'http://www.osm.org/'            1; # Faked
   '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
+  'http://www.microsoft.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
@@ -92,6 +102,10 @@ map $http_referer $denied_referer {
   '~^https?://[^.]*\.pkget\.com/'        1; # Too much traffic
   '~^https?://twpkinfo\.com/'            1; # Too much traffic
   '~^https?://[^.]*\.twpkinfo\.com/'     1; # Too much traffic
+  '~^https?://9db\.jp/'                  1; # Too much traffic
+  '~^https?://[^.]*\.9db\.jp/'           1; # Too much traffic
+  '~^https?://clustrmaps\.com/'          1; # Too much traffic
+  '~^https?://[^.]*\.clustrmaps\.com/'   1; # Too much traffic
 }
 
 map $http_referer $osm_referer {