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!

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

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

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,897
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    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