+ Reply to Thread
Results 1 to 4 of 4

Thread: password safety-
      
   

  1. #1
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default password safety-

    Have been reading about password safety and most say that the password file should not be kept in the root directory but to store it outside the server root directory. What exactly do they mean and how does that pertain to our account on the VH server?

    I know that you can create a sub-directory that would be referenced like;
    public_html/my_subdirectory

    But is that what they are talking about?

    Andy
    PHP- is a blast!

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: password safety-

    I would assume it is talking about things like the htaccess password (password protected directories). If you log in using a ftp you will have a bunch of directories:

    public_html
    public_ftp
    mail
    tmp
    .cpanel
    .htpasswds
    etc

    ... For instance with cPanel when you create a password protected directory, the passwords are stored in the ".htpasswds" directory, which is behind the root.

    If they are not talking about such passwords I haven't a clue what they are talking about (unless I am overlooking something obvious)

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: password safety-

    Watdaflip-

    Merry Christmas my friend. Well, I believe that they are refering to a directory outside that which is avaliable to the public. But, I do not know how to call upon or reference such a directory like, for instance opening a file to read / an or storing info there. I believe that it has to be allowed in the php config files.

    For now- I think that I will simply keep the info in a txt file and md5 it. I think the chances of someone guessing the txt file name are slim and if the info is md5 encrypted- it will be ok.

    Talk to you later.

    Andy
    PHP- is a blast!

  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: password safety-

    You can open a file using a filepath, such as

    "/home/cpanel_username/public_html/filename.txt"

    You should be able to open one using something like

    "home/cpanel_username/passwords/filename.txt"

    using fopen("home/cpanel_username/passwords/filename.txt", "r"); or whatever operation you will be using (read, write, alter)

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49