Sorry, I have made a mistake before.
The best way for do this is put this code on apache
ProxyPreserveHost On
ProxyRequests Off
Order allow,deny
Allow from all
RewriteEngine on
RewriteCond %{QUERY_STRING} request=GetMap [NC]
RewriteCond %{QUERY_STRING} !format=(.*)(png|jpeg)
Sorry, I have made a mistake before.
The best way for do this is put this code on apache
ProxyPreserveHost On
ProxyRequests Off
Order allow,deny
Allow from all
RewriteEngine on
RewriteCond %{QUERY_STRING} request=GetMap [NC]
RewriteCond %{QUERY_STRING} !format=(.*)(png|jpeg)
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
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.
---