# Chatbot System .htaccess

# Protect data folder
<FilesMatch "\.(json|txt|log)$">
    Order Allow,Deny
    Deny from all
</FilesMatch>

# Protect data directory
<IfModule mod_rewrite.c>
    RewriteEngine On

    # Block direct access to /data/ folder
    RewriteRule ^data/ - [F,L]

    # Block access to log files
    RewriteRule \.log$ - [F,L]
</IfModule>

# Disable directory listing
Options -Indexes

# PHP settings
<IfModule mod_php.c>
    php_flag display_errors Off
    php_value error_reporting 0
</IfModule>
