# 星云导航 - API目录保护
# 版本: 3.1.2 Pro (安全增强版)

# 禁止目录列表
Options -Indexes
Options -ExecCGI

# 只允许访问track.php和contacts.php
<FilesMatch "^(?!(track|contacts)\.php$).*$">
    Require all denied
</FilesMatch>

# 安全响应头
<IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set X-Frame-Options "DENY"
    Header set Cache-Control "no-store, no-cache, must-revalidate"
</IfModule>
