Dev environment
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?
-
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. 0 -
Great suggestion this is exactly what I was looking for. Is there way to preset a lock on public_html in the WHM settings? 0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments