: Htaccess preventing sqlite database being downloaded I have a VPS, running apache2 on Debian 6. Created a file called .htaccess on the web root, which included: <Files ~ ".db$"> Order
I have a VPS, running apache2 on Debian 6.
Created a file called .htaccess on the web root, which included:
<Files ~ ".db$">
Order allow,deny
Deny from all
</Files>
<FilesMatch ".db$">
Deny from all
</FilesMatch>
Can still manually download the database.db file that exists in the same directory as the .htaccess file. Restarted Apache2, same.
What gives?
More posts by @Gretchen104
1 Comments
Sorted by latest first Latest Oldest Best
Send it a 404!
RewriteEngine On
RewriteCond %{REQUEST_URI} (.*).db [NC]
RewriteRule ^(.*)$ 404.html [R=404,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.