I have a website like
I have little knowledge of using .htaccess files.
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
To prevent directory listings when a directory is requested (that doesn't contain a
DirectoryIndex) you can add the following to your .htaccess file in the root of your site:
This will result in a 403 Forbidden being served for
http://example.com/js/, rather than the server generating a directory listing.
As Jobin Jose suggests, you can add a (blank)
index.html to these folders (the
DirectoryIndex document). However, you will need to do this for every folder and this will serve a blank page (or whatever you decide to put in index.html), returning a successful HTTP status (200 - OK).