From: Tom Hughes Date: Wed, 30 Nov 2016 09:24:17 +0000 (+0000) Subject: Block scrapers on render servers instead of restricting to caches X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/9653afdbeb1105195a1f10a3a7ccc32d73df124f Block scrapers on render servers instead of restricting to caches --- diff --git a/cookbooks/tile/templates/default/apache.erb b/cookbooks/tile/templates/default/apache.erb index fbc781c90..292744195 100644 --- a/cookbooks/tile/templates/default/apache.erb +++ b/cookbooks/tile/templates/default/apache.erb @@ -61,9 +61,19 @@ -<% @caches.each do |cache| -%> -<% cache.ipaddresses(:role => :external).sort.each do |address| -%> - Require ip <%= address %> -<% end -%> -<% end -%> + + Require all granted + Require not ip 60.199.131.39 + Require not ip 92.217.67.26 + Require not ip 103.53.208.109 + Require not ip 113.196.123.178 + Require not ip 118.193.51.194 + Require not ip 119.188.70.34 + Require not ip 165.228.125.15 + Require not ip 171.13.14.152 + Require not ip 171.15.132.56 + Require not ip 199.203.108.5 + Require not ip 210.209.89.127 + Require not ip 210.65.88.6 +