Support - Knowledge base

Giving you the answers you need

Why not try our knowledge base for instant help and advice to enhance your online experience with Register365? From within the knowledge base you can browse our frequently asked questions and find the right answers to help solve your queries.

Home  >  Hosting  >  Linux Hosting  >  View Article

How to disable directory listings on Linux hosting.

2*2*2*2*2*

Article

If for security reasons you prefer to have directory listings disabled when a user visits a section of your website without an index page, simply create a new .htaccess file (or update an existing one) containing the following lines:
Options -Indexes
ErrorDocument 403 /index.html
This will disable the directory listing resulting in an 403 forbidden error message, which you can then redirect to the page of your choosing.

Rate This Article

How useful was this article?

Not useful A little useful Useful Very useful Everything I needed