]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: block heavy scrapers.
authorGrant Slater <git@firefishy.com>
Thu, 16 Jan 2014 14:28:20 +0000 (14:28 +0000)
committerGrant Slater <git@firefishy.com>
Thu, 16 Jan 2014 14:28:20 +0000 (14:28 +0000)
cookbooks/tilecache/templates/default/squid.conf.erb

index d8fe021acfc75abf9bb2017f4f2155e95e48b984..de33c7969aa4dfb0f98c5dfc4a815d2c0866d4b2 100644 (file)
@@ -1,8 +1,10 @@
 acl osmtile_sites dstdomain a.tile.openstreetmap.org b.tile.openstreetmap.org c.tile.openstreetmap.org tile.openstreetmap.org a.tile.osm.org b.tile.osm.org c.tile.osm.org tile.osm.org
 acl osmtiles_png urlpath_regex .png$
 
-#acl osmtileScrapers browser ^offlinemap\-lite
-#http_access deny osmtile_sites osmtileScrapers
+acl osmtileScrapers browser ^offlinemap\-lite
+acl osmtileScrapers browser ^Wget/1
+acl osmtileScrapers browser ^Apache-HttpClient/UNAVAILABLE"
+http_access deny osmtile_sites osmtileScrapers
 
 acl whitelist_path urlpath_regex ^/cgi-bin/(export|debug)$
 acl blacklist_path urlpath_regex ^/cgi-bin/