1
Navigate to Directory Privacy in cPanel
In cPanel under 'Files', select 'Directory Privacy'.
In cPanel under 'Files', select 'Directory Privacy'.
Navigate through public_html and click the name of the folder you want to protect.
Check 'Password protect this directory', enter a display label (e.g., 'Restricted Area'), and click 'Save'.
Under 'Create User', enter a Username and secure Password, then click 'Save'.