Stop Apache serving filetypes
- by ProfSmiles
Preferably using .htaccess files, though .conf files are an option, is there any way to stop Apache serving certain filetypes?
For example, .db shouldn't be served for obvious reason (privacy and whatnot, etc.), so could I make them show as a 404 but still have them available for my CGI scripts?
Putting these sensitive files in a directory other than /public_HTML/ is also an option, though I like having them in the same directory as the scripts for ease of use.
Cheers