# Chặn truy cập trực tiếp vào thư mục storage và file config
<FilesMatch "\.(json|jsonl|php)$">
    <If "%{REQUEST_URI} =~ m|/storage/|">
        Order allow,deny
        Deny from all
    </If>
</FilesMatch>

<Files "config.php">
    Order allow,deny
    Deny from all
</Files>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^storage/ - [F,L]
</IfModule>
