# LiteSpeed Specific Authentication
AuthType Basic
AuthName "Admin Area - Restricted Access"
AuthUserFile /home/admin/public_html/acadlib.com/app-panel/.htpasswd
Require valid-user

# Allow all authenticated users to access the content
<Limit GET POST PUT DELETE>
    Require valid-user
</Limit>

# Important for API files and dynamic content
SetEnvIfNoCase Request_URI "\.(php|js|css|json|api)$" allow_auth

# Security headers
<IfModule mod_headers.c>
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options DENY
    Header always set X-XSS-Protection "1; mode=block"
</IfModule>