From: Paul Norman Date: Tue, 3 Mar 2020 04:56:56 +0000 (-0800) Subject: Block some heavy apps and default user-agents X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/0ae0d9bca75517f51f9877396138b9aa98d9bc71 Block some heavy apps and default user-agents --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 1fb156008..4c8395fee 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -53,10 +53,14 @@ map $http_user_agent $denied_scraper { '~^R$' 1; # Library Default '~^Java\/' 1; # Library Default '~^tiles$' 1; # Library Default + '~^okhttp\/' 1; # Library Default '~^runtastic' 1; # App + 'Android' 1; # Default or fake 'Mozilla/4.0' 1; # Fake 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)' 1; # Fake '~^Where\ my\ children' 1; # App + 'nossoonibusjp.android.crosswalk' 1; # App + 'br.com.concisoti.potybus' 1; # App } map $http_referer $denied_referer {