By A Web Design
Login to your cPanel and look for the icons.of the Security section. Click on the Password Protect Directories icon as shown in Diagram 1

Diagram 1
On click of the Password Protect Directories icon, the screen as shown in diagram 2 will appear. Check to ensure that the radio buttom Web Root is selected. Then do nothing, Simply click Go.
If the radio buttom Web Root is not selected, then click the radio button to select it and then click Go.

Diagram 2
On the next page, select the Administrator folder. This will password protect the Joomla Administrator side of your website as shown in Diagram 3

Diagram 3
On the following page, check the Password protect this directory box as shown in Diagram 4

Diagram 4
NOTE: Enter a directory name here other then ADMINSTRATOR and check on the Password protect this directory checkbox and click on the SAVE button.
On Click of Save, the page as shown in diagram 5 will appear.
NOTE: The path displayed may differ from web host to web host.

Diagram 5
Then click the Go Back link. Do not use the browser back button. The cPanel page will open up as shown in diagram 6

Diagram 6
Create a user who will be able to login and gain access to this directory, which means that they’ll be able to access the Joomla Admin login page. It’s important not to use the same username and password that you use to login to Joomla as shown in Diagram 6.
Use the Password Generator to create a strong password, then copy this password and store it somewhere safe, along with the username.
Click on the Add/modify authorized user button as shown in diagram 6.
The screen as shown in diagram 7 will rendered in the Browser.

Diagram 7
Log out of cPanel.
If you’re logged in to Joomla admin side of your website, logout and close the tab/window.
If you were not logged in, simply go to the Joomla admin side of your website.
Open a Browser and log in to Joomla Administrator for example - http://www.mysite.com/administrator.
NOTE: Change www.mysite.com to your actual website address.
You should now see a login form appear that you’ll have to fill in to gain access to the Joomla admin login page as shown in diagram 8.
Diagram 8
NOTE: This is an operating system login and password form. After you enter the user name and password, the Joomla’s Administrator’s default Login page will appear where you will have to login normally as Joomla Admin.