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.

Will Directory Password Protection Impact On Viewing Web Pages In Browsers?

Discussion in 'Security' started by Dushy Squirt, Mar 7, 2013.

  1. Dushy Squirt

    Dushy Squirt Member

    Joined:
    Mar 7, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,

    Would anyone please be able to assist a newbie with some basic info on password protecting directories on my website?

    If I set password protection on directories using the cPanel security utitity, will people visiting the web pages on my site using a browser need to have the password or will they be able to access the web pages without noticing the actual directory where the pages reside are password protected?

    Thx
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you password protect a directory called dushy/ no one can access it without the password.

    If you password protect dushy/ but have placed images in there, say, dushy/images/, and you link to those images on your main website, domain.com, every time your main webpage is opened by anyone at domain.com it will call images from domain.com/dushy/images/imagenamehere.jpg and your users will get the password popup.

    Depending on server security if any user tries logging into that password protection and can't, they may be blocked by the firewall. You'll need to speak with your Hosting Provider or Server Administrator to find out more about that I would think.
     
  3. Dushy Squirt

    Dushy Squirt Member

    Joined:
    Mar 7, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Infopro,

    Thx for the reply.

    One last question if I may?

    I have an audio/video player enbedded in a web page that will be stored in a password protected folder. This player accesses a stream from a streaming host provider from their streaming server, will the stream be blocked from being called by the player from the streaming server?

    Thx
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    No. If you have password protected /myvideo/ directory, and in it you have an index.html that has the code to display the video, that directory and that index.html are blocked from access without password. If you have the password and access the page, the video will be called normally.
     
  5. Dushy Squirt

    Dushy Squirt Member

    Joined:
    Mar 7, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Infopro,

    Thank you for your help, I have setup the password protection on directories and it is working OK.

    Apologies, I did say above that it was my last question but I now have another question if I may?

    I have setup 6 users each with their own credentials, ie, different username and different password for each of them. Is there an option to restrict one user to one login at a time? If a user divulges their credentials to a non configured user then that would allow two logins under the same ID, can this be blocked or will one of the cPanel logs show up this type of activity?

    Thx
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    We're open all night. :)

    This page in the docs might be useful to you:
    Enable Leech Protection - cPanel Documentation
     
  7. Dushy Squirt

    Dushy Squirt Member

    Joined:
    Mar 7, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    With the password protected directories, I am only being requested to provide the login details once, ie, 1st visit to the web site. Subsequent visits to the same web page do not result in me getting asked for credentials. I have tried clearing out cookies and temporary files from my local PC browser both manually and with CCleaner but I still do not get asked for credentials.

    Is there a setting that I can configure in cPanel whereby credentials are asked for on every visit by a user?

    Thx
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Closing all browsers should end your session. The next time you visit the password protected directory you should be asked to put in your login details again.
     
Loading...

Share This Page