-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
20 lines (15 loc) · 505 Bytes
/
Copy path.htaccess
File metadata and controls
20 lines (15 loc) · 505 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Aktiviere Rewrite Engine
RewriteEngine On
# Blockiere direkten Zugriff auf PHP-Dateien außer api.php und index.html
RewriteRule ^(src|config)/.*\.(php|json)$ - [F,L]
# Setze Sicherheits-Header
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "DENY"
Header set X-XSS-Protection "1; mode=block"
</IfModule>
# Verhindere Directory Listing
Options -Indexes
# Error Documents
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html