# B2B Cloths - Installer Protection
# This file protects the installer directory after installation.
# If you need to re-install, temporarily rename this file to .htaccess.bak

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Block direct access to installer files after installation
    # The .installed flag file indicates installation is complete
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} installer/ [NC]
    RewriteCond %{DOCUMENT_ROOT}/installer/.installed -f
    RewriteRule ^ - [F,L]
</IfModule>

# Block access to sensitive files
<FilesMatch "\.(sql|log|json|installed)$">
    Require all denied
</FilesMatch>

# Block access to install handler after installation
<Files "install-handler.php">
    Require all denied
</Files>
