1 min read
Can Directory Indexing be Turned Off on WordPress?
Shashank Dubey
Content & Marketing, Wbcom Designs · Published Sep 2, 2024 · Updated Mar 16, 2026
Disabling directory indexing in WordPress is a crucial step to enhance your website’s security by preventing unauthorized users from accessing and viewing the contents of your directory files.
Using the .htaccess File
Add the appropriate directive to your .htaccess file to disable directory browsing.
Updated on March 14, 2026
Related reading