Step 1: Login to the cPanel account.
Step 2: Select the Indexes option under Advanced section.
Step 3: Please select the folder you wish to protect by clicking on its name. You can navigate by clicking on icons.
Step 4: Click any one of the options button from the available list.
Step 5: Click Save button to apply the changes.
Step 6: The settings have been updated and shows successful message.