Opening a folder on my website shows a file listing. How do I hide it?

Opening a folder on my website shows a file listing. How do I hide it?

Disable directory listing in the web server configuration for that folder or the entire website. A listing may appear when the folder has no recognised index file and the server allows its contents to be displayed. Adding an index page can hide the listing, but it does not replace disabling the feature.

Check which web server your site uses before copying configuration rules. If you need our help, email [email protected] or open a ticket in your client account. Importantly, hiding the listing does not protect files accessed through their direct URLs. Move confidential documents outside the public directory or restrict access to them.

RELATED QUESTIONS

Here are a few more questions whose answers may interest you. We answer important, practical questions for our customers.

SUBSCRIBE TO OUR NEWSLETTER

Join our newsletter. We only use it to share important information.

Newsletter subscription illustration