Skip to Content
How to Disable Directory Browsing Using the htaccess Rule
Security

How to Disable Directory Browsing Using the htaccess Rule

For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website. You can disable Directory Browsing by adding the below line to your dot htaccess file. Options -Indexes

Para fines de seguridad, debe desactivar el directorio navegando en su sitio web para que nadie pueda ver los archivos/directorios de su sitio web.

\r\n


Puede deshabilitar el directorio Browsing añadiendo la línea siguiente a su archivo dot htaccess.

\r\n
Options -Indexes
\r\n



Did this guide solve it?Your feedback helps us improve the next answer.