Question
I want to hide the identity of my tomcat version in red5. So far I have done the following:
- Removed all non necessary directories in
webapps
folder except forvod
androot\web-inf
. The other directories/webapps were not necessary. I have added an
error valve
inconf/j2ee-container.xml
based on the answer at https://stackoverflow.com/a/25237686/1688441 .</bean> <bean id="valve.error" class="org.apache.catalina.valves.ErrorReportValve"> v<property name="showServerInfo" value="false" /> <property name="showReport" value="false" /> </bean> </list>
The page is very empty now when an error happens:
HTTP Status 404 - /testing
However I have not found how to do three remaining things:
- Hide the response header outlining version (
Server:Apache-Coyote/1.1
) - Disable Directory browsing
- Hide the favicon
2 and 3 should be relatively simple for me to find.... but not sure about 1 .
Current tomcat is Apache Tomcat/7.0.57
Disclaimer about security through obscurity
This does not mean that I am endorsing relying only on security through obscurity. Instead I believe hiding the version will add a small delay to an attack forcing the attacker to perform more information gathering. Reducing information leakage is considered a best practice from OWASP.