From fbd5b3a2328444fa5419b62ac79bfa7b91bfcdb1 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 30 May 2019 16:12:18 +0100 Subject: [PATCH] tilecache: reject request without user-agent (try2) --- cookbooks/tilecache/templates/default/nginx_tile.conf.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 40b13c371..3932f54b7 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -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 -- 2.39.5