Posts tagged with ‘apache’

How to hide apache2 version number in error page

advertisement

apache, apache2 web serverIt’s good to hide the apache2 version number from outsider. Especially hiding apache2 version number in all the error pages. Hackers used to collect all this information before they launch any attack. If you running an old version server that known to have security exploit then it will ease the work for hackers.

To hide apache2 version number in error pages, follow the steps below:-

Continue reading How to hide apache2 version number in error page »

How to install apache, php, mysql with macport in Mac OS X

advertisement

The easiest way to install apache, php and mysql in Mac is thru mac port. You can also install apache, php and mysql by compiling each of the service but it’s too time consuming. If you just wan to install apache, php and mysql for development use, Mac Port install is good enough.

Follow the steps below to install apache, php and mysql in Mac OS X:-

Continue reading How to install apache, php, mysql with macport in Mac OS X »

Block IP from accessing website using .htaccess

advertisement

To block certain ip address from accessing your website, just create a file with name .htaccess at your root directory with the content below:-

order allow,deny
deny from 192.168.0.1
allow from all

If you want to block multiple ip address using .htaccess simply add one ip address per line as below:-

Continue reading Block IP from accessing website using .htaccess »