Harden Project 01 public endpoints

This commit is contained in:
Andrie
2026-06-11 23:15:42 +07:00
parent a90748d9c1
commit 6f4488c1b8
39 changed files with 1183 additions and 612 deletions
+15
View File
@@ -0,0 +1,15 @@
Options -Indexes
<IfModule mod_headers.c>
Header always set X-Frame-Options "SAMEORIGIN"
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "geolocation=(), microphone=(), camera=()"
</IfModule>
<FilesMatch "^(setup_database\.sql|README\.md|index\.html)$">
Require all denied
</FilesMatch>
RedirectMatch 404 ^/01/(tests|docs)(/|$)
RedirectMatch 404 ^/01/\.