ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is the best way to hide Php file Extension?

Like:localhost/a.php to localhost/a

user-image
تم إضافة السؤال من قبل Mohibur Rahman , CTO , CRYPT TECHNOLOGY
تاريخ النشر: 2013/04/13
Zaid Rabab'a
من قبل Zaid Rabab'a , Software Development Team Leader , Al-Safa Co. Ltd.

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

Hazem Salama
من قبل 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
من قبل 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
من قبل 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
من قبل 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

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟