How to disable directory browsing globally on whole WHM/cPanel server

To disable directory browsing/listing on whole server, follow these simple instructions:

1. Log into WHM
2. Service Configuration –> Apache Configuration
3. Global Configuration
4. Scroll down to Directory ‘/’ Options
5. Un-tick Indexes option (see picture)
6. Then press Save button below
7. Finally, rebuild by clicking rebuild apache conf button and that’s it…

How to disable directory browsing globally on whole WHM-cPanel server


This post helped you out? Why not buy me a coffee?

Your message for me
How to install IonCubeLoader without recompiling apache
How to compress your video files to save space on your Samsung Galaxy phone or Dropbox account


  1. Nice information, thanks a lot.!!!!

  2. Worked a treat. Thanks for that. Matt

Leave a Reply

Your email address will not be published / Required fields are marked *