Wednesday, August 18, 2010

Hide .php extension or Hide PHP Usage using .htaccess

If You may not want other people to know that you are using PHP programming... Here is a easy ways to hide the fact that you're using PHP.
Use another extension than .php for your PHP files... your can use .foo, .blabla, .asp or even .htm and .html (in the later case, PHP parses all the files ending in .html, but it will work fine of course if some of these files are plain HTML; slowdown for parsing plain HTML is not noticeable even on the highest loads thanks to PHP's cache).
This process can be done easily by adding the following line to your .htaccess file in the same directory than your code:
AddType application/x-httpd-php .foo .blabla .asp .htm .html

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off