I tried to disable both X-Powered-By
and Server
for security concerns by adding the following to my .htaccess in a OVH mutualized server.
<IfModule mod_headers.c>
# Security disable headers. http://www.shanison.com/2012/07/05/unset-apache-response-header-protect-your-server-information/
Header unset Server
Header unset X-Powered-By
</IfModule>
But it doesn't work, I still get these headers when running HTTP requests. Why? It is not possible because somehow the mod_headers.c is not loaded on a mutualized server?
Open the site which you would like to open and then click on the HTTP Response Headers option. Click on the X-Powered-By header and then click Remove on the Actions Pane to remove it from the response.
There is a PHP function as well which is able to do this:
<?php
header_remove("X-Powered-By");
?>
http://php.net/manual/en/function.header-remove.php
Hope this help
you can add these lines to your .htaccess
Header always unset X-Powered-By
Header unset X-Powered-By
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With