Note: If you came here looking for a commercial solution to encrypt SQLite Databases, head over to the official {link: http://www.hwaci.com/sw/sqlite/prosupport.html#crypto SQLite professional Support} page. As SQLite databases are not encrypted or password-protected by default, ways of maintaining their security should be found. When an SQLite database is stored on the file system of your server, if it's stored in a location that is "web accessible" (whether this URL is announced or not) it is possible that this could be found, downloaded, and exploited. If you don't keep sensitive information in an SQLite database, and don't mind that others see the stucture of your backend databases, this might not be an issue for you. However, in most cases, it is.{linebreak} This isn't an SQLite-specific problem, as this problem exists in other different important files, exposed to a remote user (.inc, .class, .conf)...{linebreak} Not that the security of SQLite needs to be enhanced, rather, implementers of SQLite databases should be aware of the security implications and use common sense. *:In the Zend SQLite tutorial (which is a must-read for all aspiring SQLite users), they suggest that you use the following syntax to open a database: $db = $_SERVER['DOCUMENT_ROOT']."/../database.sdb"; $handle = sqlite_open($db) or die("Could not open database"); _:That makes a lot of sense, and is a simple way to ensure that the database is outside your DocumentRoot. An Sqlite database is a binary file. If you do not want to have people being able to download it, do not put it inside a web accessible directory. (_Suggested by {link: http://php.eckspee.com/ Aaron Wormus}_) *:If the database has to be stored in one of your web accessible directories just drop the following in a .htaccess in the same directory: Deny from all _:This way it won't be possible to download the database from a remote computer. (_Suggested by {link: http://php.eckspee.com/ Aaron Wormus}_) *:Another trick you can do is to give your sqlite database a .php extension and create a table that would cause PHP to generate a parse error when trying to send the database to the user. That is, create a table named '