Harden Project 01 public endpoints
This commit is contained in:
@@ -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/\.
|
||||
Reference in New Issue
Block a user