Disable directory browsing for the website on cPanel server

1. Log into WHM

2. Service Configuration –> Apache Configuration

3. Global Configuration

4. Scroll down to Directory ‘/’ Options

5. Un-tick Indexes option

6. Then save

7. Finally, rebuild by clicking rebuild apache conf

Share on Twitter
Share on Facebook