Disallow access to specific file types

I heard that it is possible to prevent access to specific file types using htacess. If this is true -- how do I do that? Is there another way?

I am using a large script that has to have some configuration files people should not have access to under the website's root dir. Preventing users from accessing these files would be much easier than moving these files to a different location on the server and editting all the references to them in the script, which is quite complex.

 

 

 

 

Top