Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Geoserver 2.1.1, Is there way to remove the Layer preview?, actually I'm only using the gmaps web services, I want to remove the KML preview or at least add some sort of authentication.

share|improve this question
why would you want to do that? Your data will still be available to all. – iant Sep 24 '12 at 15:12
yes but only as tile images, not as plain text coordinates / values – pacofvf Sep 24 '12 at 15:47
They'll always be able to derive the coordinates by adding the tiles to openlayers or something else (qgis). – CaptDragon Sep 24 '12 at 15:49
make sure you turn off WFS as well then :-) – iant Sep 24 '12 at 15:49
I only have WMS turned on, but all the previews are available even without authentication, my only answer by now is hiding the server behind a proxy. Or a more radical solution is not using geoserver at all, I've already replicated the web services and the geocache behavior with a python-mapnik script. Any suggestions? – pacofvf Sep 24 '12 at 17:08
up vote 3 down vote accepted

Go into the geoserver/WEB-INF/lib folder and locate the demo jar, remove it, restart GeoServer. All previews will be gone

share|improve this answer
Hi, if I remove the web-demo.jar from geoserver 2.3.0, it doesn't start after reloading. Is there any other way to remove layer preview? – Michal Zimmermann Apr 24 '13 at 8:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.