Results 1 to 2 of 2
Thread: To Hide Apache Information
- 06-25-2009, 09:00 AM #1
Newbie
- Join Date
- Jan 2009
- Posts
- 10
To Hide Apache Information
Hi guys, you can just check this out..
To hide the information, add the following two apache directives in Apache configuration file /etc/apache2/apache2.conf
ServerTokens ProductOnly
ServerSignature Off
Now you need to restart your web server using the following command
#/etc/init.d/apache2 restart
Now the output for apache header looks like below
Server: Apache
Hit me back if you got any questions
- 06-26-2009, 04:34 AM #2
Member
- Join Date
- Apr 2009
- Location
- Chennai,India
- Posts
- 48
Thanks , we can also hide the PHP version like that.
Hide PHP Version Details
If you want to hide the PHP version you need to edit the /etc/php4/apache/php.ini(For php4 users) file and /etc/php5/apache/php.ini (For php5 users)
Change the following option
expose_php On
to
expose_php Off
Now you need to restart your web server using the following command
#/etc/init.d/apache2 restart
After making this change PHP will no longer add it’s signature to the web server header.
If you are running php from cli against a php file, the output is a html file (as seen by a browser). In some distributions (like Debian) the php-cli is controlled by a different php.ini file (/etc/php[4,5]/cli/php.ini).----------------------------------------------------------
mioot Live chat software to chat with your web site visitors in real time.
w2webworks.com - Website design company



LinkBack URL
About LinkBacks




Reply With Quote






Bookmarks