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.

Dev environment

Discussion in 'General Discussion' started by bsaverino, Jan 31, 2014.

  1. bsaverino

    bsaverino Member

    Joined:
    Dec 4, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    We are moving our development server to cPanel to make transitions easier. Is there anyway in cPanel to apply a blanket statement that says, if you are accessing this IP you must have a login before you can see the website you are trying to access.

    For example, I am creating abc.com for you. You go to abc.com and it says, you must enter a username and password to access this site. It then allows you to proceed and view the site.

    Our current dev server operates as described above but the process we are using will not work for cPanel. Any ideas on how to accomplish this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you intend to require authentication before a website is accessible? If so, you could use the following option from within cPanel:

    "cPanel >> Security >> Password Protect Directories"

    Thank you.
     
  3. bsaverino

    bsaverino Member

    Joined:
    Dec 4, 2013
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Great suggestion this is exactly what I was looking for. Is there way to preset a lock on public_html in the WHM settings?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You could setup a post account creation hook that utilizes our API to enable the password protection option. There is an older thread about this here, but it should give you a general idea on how to get started if it's something you wanted to pursue:

    Setup password protected directories using API

    Thank you.
     
Loading...

Share This Page