Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,423
    Likes Received:
    1,957
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice