CPanel provides options to protect your folders with a password so that when you open them in the browser, you will be asked to enter the username and password.
Please visit the following link which includes a tutorial with screenshots about how to protect your folder with a password:
https://www.dimofinf.net/knowledgebase.php?action=displayarticle&id=349