The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Website page asks for cpanel user name and password

Discussion in 'Security' started by MarkVW, Jul 6, 2009.

  1. MarkVW

    MarkVW Registered

    Joined:
    Jul 5, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    academyofcombat.co.nz/content/blogcategory/56/118/

    When this page of a website I have been working on is viewed, a pop up comes up multiple times asking for my cpanel user name and password in order to load in most of the images. If I am logged in to cpanel they work ok but members of the public can't get past the pop ups. I have checked the following:

    -hot link protection is off
    -all folders and images permissions are set to 0644 or 0755
    -there is no .htaccess file in any of the folders with the images and I have hidden dotfiles visible
    -there is no password protection on any of the files or folders

    I have looked at the .htaccess file in /public_html but I don't have enough expertise to be able to tell if anything there is causing the problem.

    Any ideas would be greatly appreciated.
     
    #1 MarkVW, Jul 6, 2009
    Last edited by a moderator: Jul 6, 2009
  2. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Solution

    It seems to be that you have been set password protection for your web site due to that after browsing the web site its asking foe login details.To disable the password protection you need to rename the .htaccess file to .htaccess-back for testing purpose or search the following line in .htaccess file and commend it.

     
  3. ChrisRHS

    ChrisRHS Well-Known Member

    Joined:
    Jul 12, 2006
    Messages:
    292
    Likes Received:
    5
    Trophy Points:
    18
    Hi there,

    You have your coding a little messed up, and your images are trying to load from your cpanel account, thus the reason it is requesting your username and password:

    You need to change these paths to link relative to your directory, or, direct link to them :

     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    When counting exactly, it asks password for 11 times, and then let me access the site :)


    Yes, I also found this code in your page:

    <p><a href="http://64.22.66.90:2082/viewer/home%2fvalhalla%2fpublic_html%2fAcademy%20Website%2fGraduation%20Photos%2fMay%20'09/mma_grading_may_09.JPG"><img alt="mixed martial arts schools, mixed martial arts academy, learn mma" src="http://64.22.66.90:2082/viewer/home%2fvalhalla%2fpublic_html%2fAcademy%20Website%2fGraduation%20Photos%2fMay%20'09/thumb_mma_grading_may_09.JPG" /></a></p>

    I think you copied the image URL from the cpanel file manager. Just correct the link and the issue will be resolved..
     
  5. MarkVW

    MarkVW Registered

    Joined:
    Jul 5, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you very much for your help guys, I had in fact linked the images from cpanel. I'm in charge of updating and modifying this website but I'm learning as I go. Thanks again.
     
Loading...

Share This Page