Managed IT
How to disable directory browsing using .htaccess?

Sreenivasa Reddy G
Founder & CEO
24
How to disable directory browsing using .htaccess?
Disable directory browsing using .htaccess
For security purposes, we recommend that you to disable directory browsing on your website so no one can see the files/folders of your website.
You can disable Directory Browsing by adding this line to your .htaccess file.
Options -Indexes
Topics
cPanelWHM

Written by
Sreenivasa Reddy G
Founder & CEO • 15+ years
Sreenivasa Reddy is the Founder and CEO of Medha Cloud, recognized as "Startup of the Year 2024" by The CEO Magazine. With over 15 years of experience in cloud infrastructure and IT services, he leads the company's vision to deliver enterprise-grade cloud solutions to businesses worldwide.
Managed IT SupportCloud InfrastructureDigital Transformation
Follow on LinkedIn