Turning off directory listings

So you don't want people seeing all the files you have in a directory when you don't have an index page there? No problem at all! The following line inside an .htaccess file will keep those directory listings from showing up:

Options -Indexes
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Blocking IP Addresses

Although this can also be done via the cPanel administration menu, you may choose to edit the...

Custom error pages without cPanel

If you're looking to create custom error pages the old fashioned way (editing the .htaccess file...