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

</filesMatch>

Restart Apache.

/etc/init.d/httpd restart

Was this answer helpful?

 Print this Article

Also Read

Disable shell access for unknown users

Suspect there are other users in your system that have shell access to your system? Please follow...

How to Prevent DDOS with CSF

You just need to configure two csf directives, thats it. The two directives are PORTFLOOD and...

Using Hotlink Protection

Hotlink Protection prevents other web sites from directly linking to certain files (typically...

How to increase numiptent limit?

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

How to Prevent Symlink Attacks

ad Impact of Symlink - Suppose you own a small hosting company with a Linux Box, & 1337...