]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/templates/default/nginx_tile.conf.erb
tilecache: block additional UAs
[chef.git] / cookbooks / tilecache / templates / default / nginx_tile.conf.erb
index aaea48377283e5a741cb7fb8566c8e266085ca9b..62e25d195b3a93ce708d65643833396087c339dc 100644 (file)
@@ -36,9 +36,14 @@ map $http_user_agent $approved_scraper {
 map $http_user_agent $denied_scraper {
   default '';          # Not denied
   '~^Python\-urllib\/' 'Python';
 map $http_user_agent $denied_scraper {
   default '';          # Not denied
   '~^Python\-urllib\/' 'Python';
+  '~^python\-requests\/' 'Python';
   '~^R$'               'R';
   '~^Java\/'           'Java';
   '~^tiles$'           'Unknown';
   '~^R$'               'R';
   '~^Java\/'           'Java';
   '~^tiles$'           'Unknown';
+  '~^Dalvik\/'         'Dalvik';
+  '~^runtastic'        'runtastic';
+  'Mozilla/4.0'        'Unknown';
+  'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)' 'Unknown';
 }
 
 map $http_referer $denied_referer {
 }
 
 map $http_referer $denied_referer {