;

PDA

Click to See Complete Forum and Search --> : I want to password protect my files in their directory


EÜRENN
10-11-2006, 12:18 PM
I have a /php directory in this one particular site, where all the important files are for logging in and accessing a control panel. I don't want any one to be able to just browse to the admin page/file, so i would like to "prepend" or protect that folder, so that IF someone DOES find, for example, control_panel.php it will ask them for a password if they haven't already logged in. How do i do that?

VI Knight
10-11-2006, 02:48 PM
if the site you are working with uses some type of control panel (cPanel) that allows you to manage your site there is an option to do that there to any directory. Aside from that, you could also put a checker in those PHP files to see whether the person has logged in or not before displaying the contents.

OR you could check out this page for other instructions if you have access change permissions on your files directly.

http://ag.arizona.edu/ecat/web/password-protect.html