A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: I want to password protect my files in their directory

  1. #1
    Member
    Join Date
    Aug 2006
    Location
    Iowa
    Posts
    63

    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?
    www :: CL203 :: VR6

  2. #2
    Island Boy
    Join Date
    Apr 2006
    Posts
    655
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center