Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Aug 2006
    Location
    England
    Posts
    34

    Default password protected dirs ask for password several times

    Dear Forum..


    i have some password protected dirs on my domain, but when i ask people to log into them, the system asks for the password lots of times.

    i have checked, the information being entered is correct first time, it just repeats the dialog asking for the login and password several times. Sometimes it wont let people in period. i have double triple checked the details and i have also cut and pasted from an email i sent, tried it on 3 or 4 computers, some login, some dont, some ask for password more than once.

    any ideas? anything i need to look out for? could this be a host server issue rather than a cpanel issue? or is there an issue i need to be aware of?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    This usually happens when you have multiple entries in the .htaccess or multiple .htaccess files with the password protection. Check the contents of them and make sure there is only one.

  3. #3
    Member
    Join Date
    Aug 2006
    Location
    England
    Posts
    34

    Default

    had a quick look at the .htacess file that is sat in my dir, what am i looking for?

    it was set using cpanel and not written in by hand. does that make a difference

    actually i have just found the passwd file. this obviously contains the scrambled password, but if i have my dir structure:

    www.domain.com/firstdir/seconddir

    and i have a passwd file in the www.domain.com/firstdir/ and the www.domain.com/seconddir/, would this mean i have to enter the login details i set twice?

    i hope that made sense...

  4. #4
    Member
    Join Date
    May 2008
    Posts
    1,114

    Default

    Quote Originally Posted by mumbles27 View Post

    I have a passwd file in the www.domain.com/firstdir/ and the www.domain.com/seconddir/, would this mean i have to enter the login details i set twice?
    Directory only should ask for the password which you have set up as a password protect directory.

  5. #5
    Member
    Join Date
    Aug 2006
    Location
    England
    Posts
    34

    Default

    i have now moved hosts, and on my new host i have hosted a page behind password protected dir, set in cpanel via "Password Protect Directories", and it is stll asking people for the username and password more than once..???

  6. #6
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,172
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    Quote Originally Posted by mumbles27 View Post
    had a quick look at the .htacess file that is sat in my dir, what am i looking for?

    it was set using cpanel and not written in by hand. does that make a difference

    actually i have just found the passwd file. this obviously contains the scrambled password, but if i have my dir structure:

    www.domain.com/firstdir/seconddir

    and i have a passwd file in the www.domain.com/firstdir/ and the www.domain.com/seconddir/, would this mean i have to enter the login details i set twice?

    i hope that made sense...

    If you are linking to images or files from one of those directories in the other, that might be causing the problem.

    To test, remove the pass protection on one of the directories. Does it ask for the password twice, still?

  7. #7
    Member
    Join Date
    Aug 2006
    Location
    England
    Posts
    34

    Default

    I have links out of the locked area to a non locked area, css, images, etc... but no other links to locked areas?

  8. #8
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Exclamation

    If you have any mod_rewrite or internal virtualhost redirection,
    you will be asked the authorization for each redirection.

    If you call the login from within an iframe, you will also be
    prompted multiple times to login typically.

  9. #9
    Member
    Join Date
    Aug 2006
    Location
    England
    Posts
    34

    Default

    does that mean a sub domain or a redirection, or both?

    and whats an iframe?

Similar Threads & Tags
Similar threads

  1. Password protect dirs + symlink dirs
    By abronier in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-15-2007, 08:00 AM
  2. password protected sub-dir, but root dir prompt for password
    By phytonet in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-30-2005, 01:21 PM
  3. Password Protected Dirs for New Users
    By rodstewart in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-02-2004, 08:02 AM
  4. Replies: 2
    Last Post: 02-26-2004, 06:34 AM
  5. Password Protected Dirs - Security Issue
    By purplepaws in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-12-2003, 11:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube