|
-
I want to password protect my files in their directory
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?
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|