From: Tom Hughes Date: Wed, 3 Aug 2016 17:16:11 +0000 (+0100) Subject: Block pmap.kuku.lu from tile caches X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/7a138e7216c2fb0798201f487857fba533ad1d04?ds=sidebyside 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. --- 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/