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.

password protect not working for jpg

Discussion in 'Security' started by ramtin arefkia, Jun 23, 2016.

  1. ramtin arefkia

    Joined:
    Feb 7, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    tehran, iran
    cPanel Access Level:
    Website Owner
    hello everyone . I activated password protect for a directory ( not public_html , a sub domain ) and the protection works well for html files but for a jpg file in that directory , the user authorization not working . what's the problem with this ??
    Thanks !
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know what in particular is not working? For instance, are you sure the image does not load because you have already authenticated?

    Thank you.
     
  3. ramtin arefkia

    Joined:
    Feb 7, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    tehran, iran
    cPanel Access Level:
    Website Owner
    yes . sure . I have tried it on another computer and also in incognito mode on chrome . for .html file , it works but for the jpg file it doesn't work . I have a subdomain that points to a folder in my home directory . I activated password protection directory for that folder and put a .html file in that . the html file requires authorization for access but a jpg file in same directory doesn't require .
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know the contents of the .htaccess file within that directory? Ensure you post it in CODE tags and remove any real domain names or IP addresses.

    Thank you.
     
  5. ramtin arefkia

    Joined:
    Feb 7, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    tehran, iran
    cPanel Access Level:
    Website Owner
    Code:
    AuthName "panorama"
    AuthUserFile "/home/******/.htpasswds/panorama/passwd"
    AuthType Basic
    require valid-user
    
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Your access level is listed as "Website Owner". Could you verify that you do not have root access to this system? If not, please report this issue to your web hosting provider so they can take a closer look.

    Thank you.
     
Loading...

Share This Page