From 7a138e7216c2fb0798201f487857fba533ad1d04 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 3 Aug 2016 18:16:11 +0100 Subject: [PATCH] Block pmap.kuku.lu from tile caches In a matter of this site has gone from virtually nothing to almost overtaking www.openstreetmap.org as the top referer with somewhere close to ten million requests per day reaching past the caches to the main tile rendering servers. --- cookbooks/tilecache/templates/default/squid.conf.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbooks/tilecache/templates/default/squid.conf.erb b/cookbooks/tilecache/templates/default/squid.conf.erb index 2127404f2..2c016be02 100644 --- a/cookbooks/tilecache/templates/default/squid.conf.erb +++ b/cookbooks/tilecache/templates/default/squid.conf.erb @@ -26,6 +26,11 @@ acl osmtileScrapers browser ^app_name$ http_access deny osmtile_sites osmtileScrapers +acl osmtileOverusers referer_regex ^https?://pmap\.kuku\.lu/ +acl osmtileOverusers referer_regex ^https?://[^.]*\.pmap\.kuku\.lu/ + +http_access deny osmtile_sites osmtileOverusers + acl whitelist_path urlpath_regex ^/cgi-bin/(export|debug) acl blacklist_path urlpath_regex ^/cgi-bin/ acl blacklist_path urlpath_regex ^/MyAdmin/ -- 2.43.2