How to prevent Directory Listing using .htaccess

In webhosting, you generally find that files in the directory are listed by default. Sometime it is useful but it can also rise the security issue. You can easily disable or enable this feature using one line in .htaccess file.

This enables Directory listing.

This disables directory listing for your web site. The … (more)