Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread abusquets
We have a solution. Make a .htaccess file with this content RewriteEngine on RewriteCond %{QUERY_STRING} request=GetMap [NC] RewriteCond %{QUERY_STRING} !format=(.*)(png|jpeg) [NC] RewriteRule .* - [F] RewriteCond %{REQUEST_URI} wms/kml RewriteCond %{QUERY_STRING} layers RewriteRule .* - [F]

Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread Ivan Price
watch out for POST requests if you'r trying to protect sensitive data (and shapefile format?) -i -Message d'origine- De : abusquets [mailto:abusqu...@gmail.com] Envoyé : Thursday, 16 January 2014 09:08 À : geoserver-users@lists.sourceforge.net Objet : Re: [Geoserver-users] WMS output

Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread Andrea Aime
On Thu, Jan 16, 2014 at 9:36 AM, Ivan Price ivan.pr...@noveltis.fr wrote: watch out for POST requests if you'r trying to protect sensitive data (and shapefile format?) Right, GeoServer also responds to WMS POST requests in two forms: * xml getmap, from the SLD extension (there is a sample in

Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread Christian Mueller
I think this solution would only work if you access Gesoerver via an apache http proxy. Is this correct ? Christian On Thu, Jan 16, 2014 at 10:07 AM, Andrea Aime andrea.a...@geo-solutions.itwrote: On Thu, Jan 16, 2014 at 9:36 AM, Ivan Price ivan.pr...@noveltis.frwrote: watch out for POST

Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread Andrea Aime
On Thu, Jan 16, 2014 at 10:37 AM, Christian Mueller christian.muel...@os-solutions.at wrote: I think this solution would only work if you access Gesoerver via an apache http proxy. Worth mentioning maybe, we had performance issues trying to scale up apache proxy to a large number of

Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread Christian Mueller
Hoping that I will find some time to add this feature into GeoServer directly. Cheers Christian On Thu, Jan 16, 2014 at 10:41 AM, Andrea Aime andrea.a...@geo-solutions.itwrote: On Thu, Jan 16, 2014 at 10:37 AM, Christian Mueller christian.muel...@os-solutions.at wrote: I think this

Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread abusquets
Sorry, I have made a mistake before. The best way for do this is put this code on apache ProxyPreserveHost On ProxyRequests Off Proxy * Order allow,deny Allow from all /Proxy RewriteEngine on RewriteCond %{QUERY_STRING} request=GetMap [NC] RewriteCond %{QUERY_STRING}

Re: [Geoserver-users] WMS output format restrictions

2014-01-16 Thread abusquets
Sorry, I have made a mistake before. The best way for do this is put this code on apache ProxyPreserveHost On ProxyRequests Off Proxy * Order allow,deny Allow from all /Proxy RewriteEngine on RewriteCond %{QUERY_STRING} request=GetMap [NC] RewriteCond %{QUERY_STRING}

[Geoserver-users] WMS output format restrictions

2014-01-15 Thread abusquets
Is there any way to restrict WMS output formats (JPEG, GIF, PNG, PNG 8) and disable kml export? Thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-output-format-restrictions-tp5098123.html Sent from the GeoServer - User mailing list archive at Nabble.com.

Re: [Geoserver-users] WMS output format restrictions

2014-01-15 Thread Christian Mueller
Hi Unfortunately not. Now the good news. I have a mandate from a customer to add this feature but I cannot commit to a point in time. Cheers Christian On Wed, Jan 15, 2014 at 12:24 PM, abusquets abusqu...@gmail.com wrote: Is there any way to restrict WMS output formats (JPEG, GIF, PNG, PNG