Step 1. Log in to the cPanel.
Step 2. Look for Indexes option in Advanced section and click on it.
Step 3. Choose any Directory from the List to disable its directory listing.
Step 4. Select "No Indexing" option and Save settings. That specific directoy won't accessible through browser.