Is it possible to hide the header that Zope advertises? Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by Apache. I know that apache can be set to hide its current version. It would be nice if we could do the same with Zope. Is this possible? Where/how do we do it? Shane
--On Mittwoch, 5. Januar 2005 1:22 Uhr -0500 Shane Graber <sgraber@gmail.com> wrote:
Is it possible to hide the header that Zope advertises?
Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by Apache.
I know that apache can be set to hide its current version. It would be nice if we could do the same with Zope. Is this possible? Where/how do we do it?
Likely by hacking the sources. -aj
From an old post I saved for such an occasion. Have not tried but but the original poster wrote back that it did work. This was a while back but should still work. --Allen
Looks like there's one line in ZServer/HTTPServer.py that does it all:
SERVER_IDENT='Zope/%s ZServer/%s' % (ZOPE_VERSION,ZSERVER_VERSION)
If you wanted to emulate the Apache production settings, you could change that to:
SERVER_IDENT='Zope'
Is it possible to hide the header that Zope advertises?
Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by Apache.
I know that apache can be set to hide its current version. It would be nice if we could do the same with Zope. Is this possible? Where/how do we do it?
Shane Graber wrote at 2005-1-5 01:22 -0500:
Is it possible to hide the header that Zope advertises?
Currently, Zope is advertising "Server: Zope/(Zope 2.7.3-0, python 2.3.4, linux2) ZServer/1.1 Plone/2.0.5", that is forwarded as is by Apache.
I know that apache can be set to hide its current version. It would be nice if we could do the same with Zope. Is this possible? Where/how do we do it?
Look at "CMFPlone/zserverPatch.py" how it adds the Plone version number. In fact, you should override this patch at it sets the actual server identification in a Plone installation. -- Dieter
participants (4)
-
Allen Schmidt -
Andreas Jung -
Dieter Maurer -
Shane Graber