.htaccess File Limit Code

Limit the files users can access from outside the server. Notice this doesn't prevent users that have ftp rights from downloading these files.

Copy the above into a file called .htaccess and add it to your site.

This code will prevent users from accessing .sql, .ini, .bak, and .inc files on your server. (non windows servers only)

For quetstions and answers on file types check out WhatsAFile.com