Sindbad~EG File Manager
RewriteEngine On
# Prevent directory listing
Options -Indexes
# Protect sensitive files
<FilesMatch "^\.">
Order allow,deny
Deny from all
</FilesMatch>
# Set default index
DirectoryIndex index.php
# Error pages - Use relative paths
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
# Security headers
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
</IfModule>
# PHP settings
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_execution_time 300
php_value max_input_time 300
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists