bsaverino

Member
Dec 4, 2013
13
0
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.