Hide Tomcat Version Details on 404 Page

It’s important to hide the version of Tomcat that is being used to ensure the baddies are unsure!

Create a new set of directories under the Tomcat lib directory:

mkdir -p /opt/apache/tomcat/lib/org/apache/catalina/util

Then create a new file under the newly created util directory called ServerInfo.properties, and copy the below into it:

server.info=

The server.info property takes a string, but it’s better to have no information on version at all, so the above hides it completely.

Then restart Tomcat, and if you enter a bad request the version will not be included.

About

I'm a technology professional who's been passionate about computers since my Grandad introduced me to an Intel 386 back in the 90s when I was a kid. Those moments inspired a passion within for technology, and I've been playing around with anything with a circuit board ever since. Whenever I have a moment you can probably find me working on something computer-related, and this is where I like to write about those moments.