XpoweredBy not working in web logic

I used weblogic server 10.3. should hide X-Powered-By: Servlet / 2.5 JSP / 2.1 from the header response for this I did the following

In weblogic admin console, under domainName->Configuration->Web Application, I set 'X-Powered-By Header ' to "X-Powered-By Header will not be sent". 

It works fine in local mode. but does not work on the server side. Even if I deleted the temporary files and restarted the server many times.

I tried to add the following to web.xml:

 <context-param> <param-name>com.sun.faces.sendPoweredByHeader</param-name> <param-value>false</param-value> </context-param> 

In php.ini, find the line containing "expose_php On" and set it to "Off":

 expose_php = Off 

similar to how we hide it in a Java web application.

in advance for your help

+1
source share
1 answer

If you have an apache server with a module header, you can try:

 <IfModule mod_headers.c> Header unset X-Powered-By </IfModule> 

As described at http://www.shanison.com/2012/07/05/unset-apache-response-header-protect-your-server-information/

0
source

All Articles