Jump to content


How to turn off AutoIndex / Index of Web Server?


  • Please log in to reply
3 replies to this topic

#1 Guest_goodsamaritan_*

Guest_goodsamaritan_*
  • Guests

Posted 21 September 2009 - 08:36 PM

How to turn off AutoIndex / Index of Web Server?
It is on by default.
I need it to be off by default for security purposes.

#2 SharkSpace_Alex

SharkSpace_Alex

    Administrator

  • Administrators
  • 175 posts

Posted 21 September 2009 - 08:59 PM

In httpd.conf look for the section that looks like

<Directory />

and you should see something like the following after it:

Options Indexes FollowSymLinks

To disable directory listing, just remove ‘Indexes’ from this line or change ‘Indexes’ to ‘-Indexes’

Make sure to restart your Apache server afterwards and clear your webcache if there's any in the way.

You may also use .htaccess file for passing this directive if you want to disable directory listing for a domain.

#3 Guest_goodsamaritan_*

Guest_goodsamaritan_*
  • Guests

Posted 22 September 2009 - 03:30 AM

Alex,

How do I do this on shared web hosting?

#4 Scott-E2

Scott-E2

    Administrator

  • Administrators
  • 1,057 posts

Posted 22 September 2009 - 08:54 AM

You can turn off indexing through your Cpanel >> Index Manager. You can customize the directory view by making changes through index manager.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users