When working with websites and their files, you will always need to have an index file for each folder. If there is no index file and a visitor navigtes directly to that folder, they will see a list of all files and folders under that directory. This can cause some security concerns. You can, however, control that with the Index Manager tool in the cPanel.

Preventing the Index Of page via cPanel

  1. Log into your cPanel interface.
     
  2. click-index-manager-iconFrom the main cPanel screen, look through the categories and locate the Advanced category. From there, click on the Index Manager icon.
     
  3. You will receive a popup box where you will need to select the domain you want to work with to protect. Click the Go button to continue.
     
  4. select folder to protectThis page is a list of all folders under the domain you selected. You can select any one or multiple folders to protect by clicking the name. If you select the root folder, the setting will cascade down to all other folders. For example, we will select the public_html folder as it is the root for our primary domain and we want to protect all folders in the domain.
     
  5. select desired displayYou are now brought to a screen where you can select the Indexing style you want to present. To prevent any index listing, select the No Indexing radio button. Click Save to activate the selection.
     
  6. Visit your site and click on a folder that does not have an index file. You should receive a 403 Forbidden page instead of a list of files. Below is a before and after shot demonstrating how the No Index setting prevents the display of the file list.
     
  7. BeforeAfter
     before index listing disabling  after index protection

 

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Comments

2013-04-27 8:26 am
Dear Team Webhostinghub

I am satisfied with your step by step comment on the issue we had enabling the directory view...

Great!

Thank You
Vasanth Kedige
Media consultant
Staff
2,132 Points
2013-04-29 6:28 pm
Glad we could assist you Vasanth! If you have any further questions please do not hesitate to ask.

Best regards,
James R

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}