preventing direct download of SQLite file using .htaccess
问题 I know the basics of .htaccess, but freely admit to being a non-expert when it comes to mod_rewrite. The problem: I have a sqlite db file in the document root (no, I can't move it out of here) called data.sqlite . This file is accessed internally by PHP files, however, I want to protect this file from being 'downloaded' by the user typing the db URL directly into their browser. I have used .htaccess to create pretty URLs in the past, and thought using mod_rewrite would provide a nice solution