]> git.openstreetmap.org Git - chef.git/commitdiff
Block scrapers on render servers instead of restricting to caches
authorTom Hughes <tom@compton.nu>
Wed, 30 Nov 2016 09:24:17 +0000 (09:24 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 30 Nov 2016 09:28:02 +0000 (09:28 +0000)
cookbooks/tile/templates/default/apache.erb

index fbc781c90bf86714a39c2593f7ab496c09e16803..292744195021b201dc0481d5d64833a262d05090 100644 (file)
 </Directory>
 
 <Location /cgi-bin/export>
 </Directory>
 
 <Location /cgi-bin/export>
-<% @caches.each do |cache| -%>
-<% cache.ipaddresses(:role => :external).sort.each do |address| -%>
-  Require ip <%= address %>
-<% end -%>
-<% end -%>
+  <RequireAll>
+    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
+  </RequireAll>
 </Location>
 </Location>