I have hosted one website in apache webserver and my login page is http://localhost/abcd/Login.jsp now when i type http://localhost/abcd/ it shows the listing of files in abcd directory . Please help how to restrict this . Thanks .
Try adding the following line to your ".htaccess" file for that directory (or creating a new .htaccess file in that directory if you didn't have one earlier):
Options -Indexes
Hope this is of any help to you
This can also be set in the httpd.conf of your server, which will hide the index for all your directories at the same time.
This is always a good idea because the less a hacker sees about your webserver, the better.