Vadorequest Vadorequest - 10 months ago 101
Apache Configuration Question

How to disable X-Powered-By on OVH mutualized server using apache?

I tried to disable both

for security concerns by adding the following to my .htaccess in a OVH mutualized server.

<IfModule mod_headers.c>
# Security disable headers.
Header unset Server
Header unset X-Powered-By

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?

Answer Source

There is a PHP function as well which is able to do this:


Hope this help