From de513ccb36b72c747c81dac3047182e719f89cba Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sat, 7 Mar 2015 16:48:11 +0000 Subject: [PATCH] Only allow HTTP GET tile requests (NOT POST) --- cookbooks/tilecache/templates/default/squid.conf.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/tilecache/templates/default/squid.conf.erb b/cookbooks/tilecache/templates/default/squid.conf.erb index ca658c296..1c47a7a83 100644 --- a/cookbooks/tilecache/templates/default/squid.conf.erb +++ b/cookbooks/tilecache/templates/default/squid.conf.erb @@ -45,7 +45,9 @@ acl blacklist_path urlpath_regex ^/zecmd/ http_access allow osmtile_sites whitelist_path http_access deny blacklist_path -http_access allow osmtile_sites +acl requestMethodGet method GET + +http_access allow osmtile_sites requestMethodGet acl osmtile_nocache_url urlpath_regex \.png/(status|dirty)$ cache deny osmtile_sites osmtile_nocache_url -- 2.39.5