From: Grant Slater Date: Fri, 17 Jan 2014 10:58:32 +0000 (+0000) Subject: tilecache: reject common tile scrapers X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/020247758dcc54d0075e0c47eb3f307062ad8779 tilecache: reject common tile scrapers --- diff --git a/cookbooks/tilecache/templates/default/squid.conf.erb b/cookbooks/tilecache/templates/default/squid.conf.erb index 663526724..9b54ad7e1 100644 --- a/cookbooks/tilecache/templates/default/squid.conf.erb +++ b/cookbooks/tilecache/templates/default/squid.conf.erb @@ -1,10 +1,19 @@ 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 -#acl osmtileScrapers browser ^Wget -#acl osmtileScrapers browser ^Apache\-HttpClient -#http_access deny osmtile_sites osmtileScrapers +acl osmtileScrapers browser ^$ +acl osmtileScrapers browser ^MOBAC +acl osmtileScrapers browser ^JTileDownloader +acl osmtileScrapers browser ^Apache\-HttpClient +acl osmtileScrapers browser ^Opera\/10\.00 +acl osmtileScrapers browser ^shipxy01 +acl osmtileScrapers browser ^OsmAnd +acl osmtileScrapers browser ^apemap +acl osmtileScrapers browser Firefox\/2\.0\.0\.11 +acl osmtileScrapers browser Firefox\/3\.5\.7 +acl osmtileScrapers browser Firefox\/3\.6 +acl osmtileScrapers browser ^User-Agent +http_access deny osmtile_sites osmtileScrapers acl whitelist_path urlpath_regex ^/cgi-bin/(export|debug)$ acl blacklist_path urlpath_regex ^/cgi-bin/