secure cpanel/roundcube webmail login script

salvatore333

Well-Known Member
Mar 27, 2003
233
0
166
i was looking and found most posts outdated with newer versions of browsers and cpanel 11.25 out now. i am using the current version of whm and cpanel. i would like to put a form on my website so customers can login to either there control panel or there roundcube webmail ONLY securely. also i would like to have a domain, username and password field on the form, not just username and password.

would somebody be kind enough to give me idiot proof instructions on how to do this.


thanks so much
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
I suggest using the following as a guide to create a custom (branded) login form; here is an example we have available in our documentation:
SampleBrandedLogin < AllDocumentation < TWiki
The example script may be modified as necessary to only allow what is desired, such as SSL access to cPanel, WHM, and Webmail.

Relating to ensuring users login via SSL, as of cPanel/WHM v11.25 there is a new option to require SSL access; once upgraded to version 11.25 the option may be enabled via the Tweak Settings page in WHM.

Documentation (for version 11.25):
Tweak Settings - Security
* Require SSL for all remote logins to cPanel, WHM, and Webmail.
 

salvatore333

Well-Known Member
Mar 27, 2003
233
0
166
i did see this document:
SampleBrandedLogin < AllDocumentation < TWiki

but i did not know how to add a domain name field to authenticate also and where to actually put my code (server hostname) so that it works on my server.

i am not too good without step by step instructions for this, sorry


thanks very much if you could help