Forum Moderators: phranque

Message Too Old, No Replies

Getting rid of the x-powered-by PHP/x.x

         

smithaa02

4:40 pm on Jun 5, 2006 (gmt 0)

10+ Year Member



For security and SEO reasons, I would like to get rid of the x-powered-by PHP/x.x header I recieve from the server, but don't know how to do this.

I tried inserting: php_flag expose_php Off into my .htaccess file, but that didn't work.

Does anybody know of a way to do this with the .htaccess file or any other techniques so I don't get this?

coopster

4:49 pm on Jun 5, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



That particular configuration directive can be set in
php.ini
only.
[php.net...]