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 40b13c3..3932f54 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