InMotion Hosting Support Center

How do I make it so folders show error message?

Category: How To

2012-09-28 5:01 pm EST

Hits: 353
How do I make it so folders show error message?

Currently, if someone goes to, they see all my files in my video directory. I want them to see a an error message, unless they have the exact url. How do I make this happen?

Thank you,

You must login before you can ask a follow up question.

You must login before you can submit an answer.



40,987 Points
2012-09-28 7:30 pm EST
Hello Chrismg,

You need to add this line to your .htaccess file (hidden file in your public_html folder):

Options All -Indexes

You can access your .htaccess file by using the file manager in cpanel. Remember to check off SHOW HIDDEN files, otherwise, you won't see it. Here's a link for this:

Using your File Manager to show hidden files

If you have any further questions, please contact technical support or leave a comment at the bottom of the page.


Arnel C.

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

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!