Posts under Web Hosting

How to block all file access except one using .htaccess

advertisement

htaccessIf you use .htaccess to control the file access, i guess u might came to a situation where you want to block all the files but except one. For an example, you might want to block all the php file access in WordPress wp-content folder using .htaccess. however some of the plugins need to have direct file access (and this is php file too). To solve this problem, you can use htaccess to allow the access for only one file.

To block all access except one file using .htaccess, follow the steps below:-

Continue reading How to block all file access except one using .htaccess »

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 remove apache test page in CentOS

advertisement

After you install apache web server in CentOS and point your browser to http://localhost you will see a Apache 2 Test Page powered by CentOS. You can disable or remove this apache test page from the configuration file. Before you do any modification, please make sure you have the privilege to reload the apache webserver.


apache test page

To remove apache test page in CentOS, follow the steps below:-

Continue reading How to remove apache test page in CentOS »