Options -Indexes
<FilesMatch "^(config\.php|INSTALL-KEY\.txt|.*\.sqlite|.*\.sqlite-shm|.*\.sqlite-wal)$">
Require all denied
</FilesMatch>
RewriteEngine On
RewriteRule ^(data|photos)/ - [F,L]
