From 0ae0d9bca75517f51f9877396138b9aa98d9bc71 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Mon, 2 Mar 2020 20:56:56 -0800 Subject: [PATCH] Block some heavy apps and default user-agents --- cookbooks/tilecache/templates/default/nginx_tile.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.39.5