How to create passworded areas/directories without a control panel?

Discussion in 'Security' started by Website_Playboy, Dec 28, 2012.

  1. #1
    A friend has gave me some space in his hosting account and I publish my websites from there. However I dont have a control panel/SSH or anything like that.

    All i have is ftp to my files, phpmyadmin and email system.

    Now I need to create some passworded areas. Could be directories or just some pages. So the question is;

    Is there anyway to create passworded directories/files without a control panel like cpanel?
    I though maybe there is a way to set a password through .htaccess or maybe via a php file or something.
     
    Website_Playboy, Dec 28, 2012 IP
  2. BreezeHost

    BreezeHost Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    28
    #2
    Which operating system do you use?
     
    BreezeHost, Dec 30, 2012 IP
  3. Website_Playboy

    Website_Playboy Member

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    You mean me? I use vista. But I dont host my website from home.

    He got the hosting through godaddy. I dont know the OS he uses. I can ask if you need. But what is that gonna do? I dont have a control panel like cpanel,kloxo etc.
     
    Website_Playboy, Dec 30, 2012 IP
  4. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #4
    hostechsupport, Dec 30, 2012 IP
  5. Website_Playboy

    Website_Playboy Member

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    I dont have access for that either. As i said before. I have ftp, email and phpmyadmin access. Thas all.
     
    Website_Playboy, Dec 30, 2012 IP
  6. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #6
    You can ask your friend to do it.I think he/she will help you in this regards.
     
    hostechsupport, Dec 31, 2012 IP
  7. Website_Playboy

    Website_Playboy Member

    Messages:
    115
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #7
    He did but still doesnt work. This is what i got in my .htaccess

    AuthUserFile /home/content/75/9886475/html/MYFOLDER/.htpasswd 
    AuthName "Please Log In" 
    AuthType Basic
    
    require valid-user
    Code (markup):
    This is what i got in my .htpasswd

    test:$apr1$OgZ24kXF$ZWx5EDjYB6q/5hZMZnGHR/
    Code (markup):
    Both htaccess and htpasswd are in the folder which is suppose to be passworded. But when i go to index.html in that folder i get the login screen and then i get 500 server error.

    However when I put the path in htaccess as /MYFOLDER/.htpasswd i still get the login screen and then 500 error
     
    Website_Playboy, Jan 1, 2013 IP