All Joomla admin directories are the same, so we need to have safeguards in place to avoid prying eyes from bad actors. This tutorial will help you protect Joomla Administrator directory by password easy via your Cpanel hosting option with some easy steps.
To set up a password protected directory, you’ll need access to your site’s hosting control panel. We’re using cPanel but other hosting dashboards will have a similar option. You may need to contact your host or look at their documentation to learn how.
Login to cPanel or your hosting account dashboard
Click on the Directory Privacy button
Click on the name of whatever directory your site is in. (Often this is public_html)
Click the Edit button to protect /administrator
Enter a name for the protected directory then click SAVE
This next screen will already have the top part filled in. The bottom portion of the screen under Create User you’ll need to fill in.
Enter the Name and Password then click SAVE