Proper structure is important when building a website. Including an index page in each folder is one of the basic steps to both desing and security. By default, if a visitor lands on a subdirectory without an index page, they will see an "Index Of" page that lists all files and folders under that directory. This can be at the least embarassing and unprofessional and at most a security risk. Follow the instructions below to learn how to stop the "Index Of" page from showing using the Index Manager in the cPanel.

How to prevent displaying the "Index Of" page via cPanel

  1. First, log into your cPanel interface.
  2. click on the tool iconLook through the categories listing on the right hand panel of the main cpanel page and find Advanced category. Click on the Index Manager icon to continue.
  3. Next, a popup will appear. You will select the domain name you want to work with. Click the Go button to continue once you have selected your domain.
  4. click which folder to protectNext is a page that lists all folders under the domain you previously selected. You can select any one folder to protect by clicking the name. If you select the root folder, the setting will cascade down to all other folders, protecting them all. In our 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 No Indexing to disableYou are now brought to a screen where you can select the Indexing style you want to present. To prevent any index listing at all, simply select the No Indexing radio button. Click Save to activate your selection. Now you can visit your site and enter a subdirectory without 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.
    before index protection enabledafter index protection enabled
Continued Education in Course cPanel
You are viewing Section 4: Preventing the "Index Of" listing page using the Index Manager
Section 3: Setting up Google Apps in cPanel
Section 5: How to find which users are attached to databases
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

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

Support Center Login

Social Media Login

Related Questions

Here are a few questions related to this article that our customers have asked:
Why is my home page displaying as an index list only?
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-04-16 12:32 am

hello...,good morning.inmotionhosting is a flexible tutorial for cpanel and webhosting.

Post a Comment

Email Address:
Phone Number:

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

3 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!