projects
/
chef.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tilecache: reject request without user-agent (try2)
[chef.git]
/
cookbooks
/
tilecache
/
templates
/
default
/
nginx_tile.conf.erb
diff --git
a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb
b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb
index 40b13c371631af5536240ca5b034716d78a2a548..3932f54b7b0462a9a4d3dac16ae8f3037488be89 100644
(file)
--- 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
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
'~^Python\-urllib\/' 1; # Library Default
'~^python\-requests\/' 1; # Library Default
'~^node\-fetch\/' 1; # Library Default