2022-09-18 | 788 Print PDF
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
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:
Before:
After:
Google CEO Sundar Pichai: Search will profoundly change in 2025
3 Most Important Business Growth Strategies
Top 20 Work From Home Job Skills
SEO Tips and Strategies For Small Businesses
Google is making a major change to Local Service Ads
Why is Google Ads So Expensive a Case Study
Meta Careers Remote Work From Home Jobs Scam
Strategies For Integrating Organic and Paid Web Site Traffic
How to use Google Analytics GA4 Reporting
Digital Marketing Agency Red Flags List