How to protect Directory Indexing?

You are here:
Estimated reading time: < 1 min

Apache web servers allow directory browsing by default. It’s always good to disable directory browsing as a security measure.

Disable directory browsing:

1. Login to your CPanel,
2. Click on Index Manager,
3. Directory will be listed down. Click on the directory name which you want to disable the directory browsing,
4. Select No Index and click Save,
5. The directory browsing feature should be disabled by now.

Or

Under public_html make .htaccess and put this line “Options -Indexes” over there. That’s it.

Was this article helpful?
Dislike 0

Author

Joshua

Web Hosting Geek Technical Support Staff G Online Sites