Online Marketing Strategies

How To Disable Server Signature Using htaccess.

2022-09-18 | 447 Print Friendly Version of this pagePrint Get a PDF version of this webpagePDF

How To Turn Off Server Signature Using .htaccess or Apache.

Today I will be giving an illustrative explanation of how to disable server signature using .htaccess. or Apache to turn off server signature, if you ever run an SEO analysis or audit on your website you probably would have noticed that server signature is part of the results that are being presented on your SEO report.


1.) Turn Off Server Signature Using .htaccess

One of the methods you can use to turn off the server signature on your website is to use the .htaccess, first, you need to get access to your cPanel and then edit the.htaccess file and include the following code of line;

# Disable server signature
 ServerSignature Off

This will hide the Apache version normally seen at the bottom of your 404 error pages, directory listing..etc.


2.)  Disable signature by editing httpd.conf

There are two directives that you need to add or edit in your httpd.conf / apache2.conf file:

For Ubuntu and LinuxMint edit apache conf using the following command (for Centos/Fedora edit httpd.conf):

cd /etc/apache2/
vi apache2.conf

and add these 2 lines at the bottom of the file:

ServerSignature Off
ServerTokens Prod

seo web analyst blogger community

The ServerSignature appears on the bottom of pages generated by apache such as 404 pages, directory listings, etc.

The ServerTokens directive is used to determine what Apache will put in the Server HTTP response header. By setting it to Prod it sets the HTTP response header as follows:

Server: Apache

When is done, restart apache:

/etc/init.d/httpd restart    CentOS/Fedora/RHEL sudo /etc/init.d/apache2 restart    Ubuntu/Debian/LinuxMint

Here are the results:


seo web analyst blogger community


seo web analyst blogger community

comments powered by Disqus


custom ads side bar


authors image profile

Olatunji Adetunji

I am a seo web analyst and have a love for anything online marketing. Have been able to perform researches using the built up internet marketing tool; seo web analyst as a case study and will be using the web marketing tool (platform).


Subscribe RSS

Subscribe with Subscribe with facebook Subscribe with google Subscribe with linkedin Subscribe with TwitterSubscribe with Yahoo   


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

More Posts From Online Marketing Strategies

Random Blogs

Licensedclearing Agent
Freight Forwarder
Online Marketing Strategies
Inverter prices
Forex Trading Strategies