]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: reject request without user-agent (try2)
authorGrant Slater <git@firefishy.com>
Thu, 30 May 2019 15:12:18 +0000 (16:12 +0100)
committerGrant Slater <git@firefishy.com>
Thu, 30 May 2019 15:12:18 +0000 (16:12 +0100)
cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index 40b13c371631af5536240ca5b034716d78a2a548..3932f54b7b0462a9a4d3dac16ae8f3037488be89 100644 (file)
@@ -46,6 +46,7 @@ map $http_user_agent $approved_scraper {
 
 map $http_user_agent $denied_scraper {
   default                0; # Not denied
+  ''                     1; # No User-Agent Set
   '~^Python\-urllib\/'   1; # Library Default
   '~^python\-requests\/' 1; # Library Default
   '~^node\-fetch\/'      1; # Library Default