Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the best way to hide Php file Extension?

Like:localhost/a.php to localhost/a

user-image
Question ajoutée par Mohibur Rahman , CTO , CRYPT TECHNOLOGY
Date de publication: 2013/04/13
Zaid Rabab'a
par Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.

use .htaccess you can find alot of articles talk about it

Hazem Salama
par Hazem Salama , Senior Member of Technical Staff , Verizon Communications

You can do via the .htaccess file. See some examples here http://php.net/manual/en/security.hiding.php

Mo'ath Al Mallahi
par Mo'ath Al Mallahi , Senior PHP Developer , iHorizons

Hi, best way is to use the extension .inc or anything similar to, after that you can disallow the accessing to these files extensions by the .htaccess

Muhammad Majid Saleem
par Muhammad Majid Saleem , Senior PHP Developer / Project Manager , SwaamTech

Yes - .htaccess file is the way by which you can hide real extension of your files from url. There are many other things which you can do using .htaccess file like: - Block specific IP to access your website. - Allow specific IP to access your website. - Stop specific folder to be shown - Allow specific page to be displayed as an error page. and many other things. Have a look on this article: https://my.bluehost.com/cgi/help/htaccess

islam khalil
par islam khalil , Technical Manager , iCloudit

Many helpful answers : and i like to share this with you : http://php.net/manual/en/security.hiding.php also Use .htaccess and URL Rewrite :D

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?