How to disable all Apache header information?

Follow the below steps to disable Apache header information.

Edit your mail Apache configuration file and add you can see the below lines somewhere in that file.

vim /etc/httpd/conf/httpd.conf

ServerSignature On

ServerTokens OS

Change it to as shown below.

ServerSignature off

ServerTokens Prod

Also add the below entries somewhere in it to disable Apache Last Modified header.

<filesMatch ".*$">

Header unset Last-Modified


Restart Apache.

/etc/init.d/httpd restart

Was this answer helpful?

 Print this Article

Also Read

How to increase numiptent limit?

You may got the following errors ( Most probably after enabling CSF ) The VPS iptables...

what is eXploit Scanner (cxs)

eXploit Scanner (cxs) is a new tool from Configserver that performs active scanning of files as...

How to Secure PHP from php.ini

PHP's default configuration file, php.ini (usually found in /etc/php.ini on most Linux systems)...

How to disable ping request?

If you are looking for the  steps to disable ping. Please find the steps below. Run the...

How To Use The IP Deny Manager

This tutorial will teach you how to use the IP Deny Manager to block access to your web site from...