This guide is available as a video:

Enabling a directory password for your WHMCS admin

This tutorial is part of our WHMCS tutorials series.

In this tutorial I will show you how to set a directory password for your WHMCS admin area. This will require a username and password to access the WHMCS admin login page. So in order for someone to access your WHMCS admin area they will need to know 2 sets of usernames and passwords. This is a good second layer of protection for your WHMCS and very quick and easy to enable.

Before following this tutorial it is very important that your WHMCS uses a custom admin directory. As it is far superior in terms of security having a custom admin directory rather than the default admin directory and 2 logins. If your installation is using the admin directory, I recommend changing it following our guide in the description before moving onto this video.

In this tutorial we will use cPanel as it proves an easy tool for directory protection. However, you could achieve the same by using htaccess. This tool is effectively creating the .htaccess file for us.

Head to cPanel and find the directory privacy page.

Navigate to your admin directory of WHMCS. Note that we are using the default admin directory as this is a development install. Click on the edit button next to the directory, enable password protection and then set a name. Click on the go back link, we now have the option to set a user. A user is a login consisting of a username and password which can be used to access the directory, in this case our WHMCS admin directory. Let's go ahead and create a user and password.

To check it's working head to your WHMCS admin directory. You will now be promoted for the username and password you just created prior to the WHMCS admin login page loading. Enter the login you created in the previous step. You can then proceed to login to WHMCS using your usual login.

Success, you now have an extra layer of security enabled for your WHMCS admin area.


If you have any questions please leave a comment below or contact our support.