Password Protecting website Pages and Directories using .htaccess.
Recently I came across an issue of listing the directory struture and files in the web browser of a web site.The website was hosted on an Apache web server.After Googling Google and reading the Apache HTTP Server documentation I could revolve the issue by doing few things related to the .htaccess file.