Knowledgebase

How to disable directory browsing using .htaccess?  Print this Article

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

Was this answer helpful?

Also Read

How to blacklist an IP Address to deny it access to your website?
You can lock directory with a password by using cPanel "Password Protected Directories" option.1....
How to protect a folder with username and password in cPanel?
You can lock a directory with password by using the cPanel "Password Protected Directories"...
How to use Lets Encrypt SSL Cert
  To install the certificate it's fast and easy.   You only have to access your cpanel and...
Configuring SSL certificate
First, make a order of SSL certificate.After payment access your Client area >> Services,...
How to ban any IP Address via .htaccess?
If someone is trying to hack your website or you want to block their IP Address, you can add this...